summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/dbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/dbox.cpp')
-rw-r--r--src/mame/drivers/dbox.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/dbox.cpp b/src/mame/drivers/dbox.cpp
index 6b16eed4b63..88e8b5e7bf4 100644
--- a/src/mame/drivers/dbox.cpp
+++ b/src/mame/drivers/dbox.cpp
@@ -617,10 +617,10 @@ MACHINE_CONFIG_START(dbox_state::dbox)
MCFG_DEVICE_MODIFY("maincpu:serial")
MCFG_MC68340SER_A_TX_CALLBACK(WRITELINE("rs232", rs232_port_device, write_txd))
MCFG_MC68340SER_B_TX_CALLBACK(WRITELINE("modem", rs232_port_device, write_txd))
- MCFG_DEVICE_ADD ("rs232", RS232_PORT, default_rs232_devices, nullptr)
- MCFG_RS232_RXD_HANDLER (WRITELINE ("maincpu:serial", mc68340_serial_module_device, rx_a_w))
- MCFG_DEVICE_ADD ("modem", RS232_PORT, default_rs232_devices, nullptr)
- MCFG_RS232_RXD_HANDLER (WRITELINE ("maincpu:serial", mc68340_serial_module_device, rx_b_w))
+ rs232_port_device &rs232(RS232_PORT(config, "rs232", default_rs232_devices, nullptr));
+ rs232.rxd_handler().set("maincpu:serial", FUNC(mc68340_serial_module_device::rx_a_w));
+ rs232_port_device &modem(RS232_PORT(config, "modem", default_rs232_devices, nullptr));
+ modem.rxd_handler().set("maincpu:serial", FUNC(mc68340_serial_module_device::rx_b_w));
/* Add the boot flash */
AMD_29F800B_16BIT(config, "flash");