summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/spg290_timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/spg290_timer.cpp')
-rw-r--r--src/devices/machine/spg290_timer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/machine/spg290_timer.cpp b/src/devices/machine/spg290_timer.cpp
index 25ee7790e8b..f0c0867a612 100644
--- a/src/devices/machine/spg290_timer.cpp
+++ b/src/devices/machine/spg290_timer.cpp
@@ -16,13 +16,13 @@ DEFINE_DEVICE_TYPE(SPG290_TIMER, spg290_timer_device, "spg290_timer", "SPG290 Ti
spg290_timer_device::spg290_timer_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, SPG290_TIMER, tag, owner, clock)
, m_irq_cb(*this)
+ , m_enabled(false)
{
}
void spg290_timer_device::device_start()
{
- m_irq_cb.resolve_safe();
- m_tick_timer = timer_alloc();
+ m_tick_timer = timer_alloc(FUNC(spg290_timer_device::timer_update), this);
save_item(NAME(m_enabled));
save_item(NAME(m_control));
@@ -56,7 +56,7 @@ void spg290_timer_device::device_clock_changed()
m_tick_timer->adjust(attotime::never);
}
-void spg290_timer_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)
+TIMER_CALLBACK_MEMBER(spg290_timer_device::timer_update)
{
if (!BIT(m_control, 31))
return;