summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/namcoio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/namcoio.cpp')
-rw-r--r--src/mame/machine/namcoio.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mame/machine/namcoio.cpp b/src/mame/machine/namcoio.cpp
index f3e39cbdc8a..07a02a37748 100644
--- a/src/mame/machine/namcoio.cpp
+++ b/src/mame/machine/namcoio.cpp
@@ -124,8 +124,8 @@ DEFINE_DEVICE_TYPE(NAMCO_59XX, namco59xx_device, "namco59", "Namco 59xx I/O")
namcoio_device::namcoio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, int device_type)
: device_t(mconfig, type, tag, owner, clock)
- , m_in_cb{ { *this }, { *this }, { *this }, { *this } }
- , m_out_cb{ { *this }, { *this } }
+ , m_in_cb(*this)
+ , m_out_cb(*this)
//, m_device_type(device_type)
{
}
@@ -151,10 +151,8 @@ namco59xx_device::namco59xx_device(const machine_config &mconfig, const char *ta
void namcoio_device::device_start()
{
- for (devcb_read8 &cb : m_in_cb)
- cb.resolve_safe(0);
- for (devcb_write8 &cb : m_out_cb)
- cb.resolve_safe();
+ m_in_cb.resolve_all_safe(0);
+ m_out_cb.resolve_all_safe();
save_item(NAME(m_ram));
save_item(NAME(m_reset));