summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/snes_ctrl/ctrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/snes_ctrl/ctrl.cpp')
-rw-r--r--src/devices/bus/snes_ctrl/ctrl.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/devices/bus/snes_ctrl/ctrl.cpp b/src/devices/bus/snes_ctrl/ctrl.cpp
index 53383c13ce7..b0cf145072f 100644
--- a/src/devices/bus/snes_ctrl/ctrl.cpp
+++ b/src/devices/bus/snes_ctrl/ctrl.cpp
@@ -8,6 +8,7 @@
#include "emu.h"
#include "ctrl.h"
+
// slot devices
#include "bcbattle.h"
#include "joypad.h"
@@ -23,7 +24,7 @@
// GLOBAL VARIABLES
//**************************************************************************
-const device_type SNES_CONTROL_PORT = device_creator<snes_control_port_device>;
+DEFINE_DEVICE_TYPE(SNES_CONTROL_PORT, snes_control_port_device, "snes_control_port", "Nintendo SNES / SFC controller port")
//**************************************************************************
@@ -59,8 +60,8 @@ device_snes_control_port_interface::~device_snes_control_port_interface()
//-------------------------------------------------
snes_control_port_device::snes_control_port_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
- device_t(mconfig, SNES_CONTROL_PORT, "Nintendo SNES / SFC control port", tag, owner, clock, "snes_control_port", __FILE__),
- device_slot_interface(mconfig, *this), m_device(nullptr)
+ device_t(mconfig, SNES_CONTROL_PORT, tag, owner, clock),
+ device_slot_interface(mconfig, *this), m_device(nullptr)
{
}