summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/harddriv.cpp
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2018-10-17 18:13:53 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2018-10-17 18:13:53 +0200
commit3cb3744f22da18ff8214703773fb1c4430bef186 (patch)
treeb4f190f0e8083afe28be27a188bb86b2f3ff3ff2 /src/mame/drivers/harddriv.cpp
parentf8719bbfaf2bdb45179cd83ef20f31f8d742ed2d (diff)
rs232: small start at removing MCFG macros (nw)
Diffstat (limited to 'src/mame/drivers/harddriv.cpp')
-rw-r--r--src/mame/drivers/harddriv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/harddriv.cpp b/src/mame/drivers/harddriv.cpp
index 86e98898c75..986e7aaff7f 100644
--- a/src/mame/drivers/harddriv.cpp
+++ b/src/mame/drivers/harddriv.cpp
@@ -1496,8 +1496,8 @@ MACHINE_CONFIG_START(harddriv_state::driver_nomsp)
MCFG_MC68681_IRQ_CALLBACK(WRITELINE(*this, harddriv_state, harddriv_duart_irq_handler))
MCFG_MC68681_A_TX_CALLBACK(WRITELINE ("rs232", rs232_port_device, write_txd))
- MCFG_DEVICE_ADD("rs232", RS232_PORT, default_rs232_devices, nullptr)
- MCFG_RS232_RXD_HANDLER(WRITELINE ("duartn68681", mc68681_device, rx_a_w))
+ rs232_port_device &rs232(RS232_PORT(config, "rs232", default_rs232_devices, nullptr));
+ rs232.rxd_handler().set("duartn68681", FUNC(mc68681_device::rx_a_w));
/* video hardware */
MCFG_PALETTE_ADD("palette", 1024)