summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/rs232/null_modem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/rs232/null_modem.cpp')
-rw-r--r--src/devices/bus/rs232/null_modem.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/devices/bus/rs232/null_modem.cpp b/src/devices/bus/rs232/null_modem.cpp
index 08366b01df9..def7bd2a315 100644
--- a/src/devices/bus/rs232/null_modem.cpp
+++ b/src/devices/bus/rs232/null_modem.cpp
@@ -22,10 +22,9 @@ null_modem_device::null_modem_device(const machine_config &mconfig, const char *
{
}
-void null_modem_device::device_add_mconfig(machine_config &config)
-{
- BITBANGER(config, m_stream, 0);
-}
+MACHINE_CONFIG_START(null_modem_device::device_add_mconfig)
+ MCFG_DEVICE_ADD("stream", BITBANGER, 0)
+MACHINE_CONFIG_END
static INPUT_PORTS_START(null_modem)
MCFG_RS232_BAUD("RS232_TXBAUD", RS232_BAUD_9600, "TX Baud", null_modem_device, update_serial)