summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/upd4701.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/upd4701.cpp')
-rw-r--r--src/devices/machine/upd4701.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/devices/machine/upd4701.cpp b/src/devices/machine/upd4701.cpp
index 9fd7b6de7b7..8b6c161efbf 100644
--- a/src/devices/machine/upd4701.cpp
+++ b/src/devices/machine/upd4701.cpp
@@ -16,11 +16,12 @@
#define MASK_SWITCHES ( 7 )
#define MASK_COUNTER ( 0xfff )
-const device_type UPD4701 = device_creator<upd4701_device>;
+DEFINE_DEVICE_TYPE(UPD4701, upd4701_device, "upd4701", "uPD4701 Encoder")
upd4701_device::upd4701_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : device_t(mconfig, UPD4701, "uPD4701 Encoder", tag, owner, clock, "upd4701", __FILE__), m_cs(0), m_xy(0), m_ul(0), m_resetx(0), m_resety(0), m_latchx(0), m_latchy(0),
- m_startx(0), m_starty(0), m_x(0), m_y(0), m_switches(0), m_latchswitches(0), m_cf(0)
+ : device_t(mconfig, UPD4701, tag, owner, clock)
+ , m_cs(0), m_xy(0), m_ul(0), m_resetx(0), m_resety(0), m_latchx(0), m_latchy(0)
+ , m_startx(0), m_starty(0), m_x(0), m_y(0), m_switches(0), m_latchswitches(0), m_cf(0)
{
}