From 3679f744c291a75d83085fe049f91ddc94b1419a Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Mon, 24 Sep 2012 14:43:01 +0000 Subject: modernization or timer callbacks part 2 (no whatsnew) --- src/mess/machine/pc1251.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/mess/machine/pc1251.c') diff --git a/src/mess/machine/pc1251.c b/src/mess/machine/pc1251.c index 7d7841d6ec3..aa7dcace9fa 100644 --- a/src/mess/machine/pc1251.c +++ b/src/mess/machine/pc1251.c @@ -100,10 +100,9 @@ MACHINE_START( pc1251 ) machine.device("ram_nvram")->set_base(ram, 0x4800); } -static TIMER_CALLBACK(pc1251_power_up) +TIMER_CALLBACK_MEMBER(pc1251_state::pc1251_power_up) { - pc1251_state *state = machine.driver_data(); - state->m_power = 0; + m_power = 0; } DRIVER_INIT_MEMBER(pc1251_state,pc1251) @@ -113,6 +112,6 @@ DRIVER_INIT_MEMBER(pc1251_state,pc1251) for (i=0; i<128; i++) gfx[i]=i; m_power = 1; - machine().scheduler().timer_set(attotime::from_seconds(1), FUNC(pc1251_power_up)); + machine().scheduler().timer_set(attotime::from_seconds(1), timer_expired_delegate(FUNC(pc1251_state::pc1251_power_up),this)); } -- cgit v1.2.3-70-g09d2