summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ds2401.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/ds2401.cpp')
-rw-r--r--src/devices/machine/ds2401.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/devices/machine/ds2401.cpp b/src/devices/machine/ds2401.cpp
index c0a6b4bce00..bb1a3064dad 100644
--- a/src/devices/machine/ds2401.cpp
+++ b/src/devices/machine/ds2401.cpp
@@ -27,10 +27,12 @@ inline void ds2401_device::verboselog(int n_level, const char *s_fmt, ...)
}
// device type definition
-const device_type DS2401 = device_creator<ds2401_device>;
+DEFINE_DEVICE_TYPE(DS2401, ds2401_device, "ds2401", "DS2401 Silicon Serial Number")
ds2401_device::ds2401_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : device_t(mconfig, DS2401, "DS2401", tag, owner, clock, "ds2401", __FILE__), m_state(0), m_bit(0), m_shift(0), m_byte(0), m_rx(false), m_tx(false), m_timer_main(nullptr), m_timer_reset(nullptr)
+ : device_t(mconfig, DS2401, tag, owner, clock)
+ , m_state(0), m_bit(0), m_shift(0), m_byte(0), m_rx(false), m_tx(false)
+ , m_timer_main(nullptr), m_timer_reset(nullptr)
{
}