From 7edbd5bf425c6a73c2bd1cb990fa4cef2e08b51e Mon Sep 17 00:00:00 2001 From: hap Date: Mon, 7 Nov 2022 12:38:17 +0100 Subject: misc: remove unneeded calls to driver_device --- src/mame/atari/liberatr.cpp | 2 +- src/mame/homebrew/gscpm.cpp | 1 - src/mame/misc/notechan.cpp | 2 +- src/mame/trs/mc10.cpp | 4 ---- 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/mame/atari/liberatr.cpp b/src/mame/atari/liberatr.cpp index 08b4ca2b250..a0030cae6bc 100644 --- a/src/mame/atari/liberatr.cpp +++ b/src/mame/atari/liberatr.cpp @@ -426,7 +426,7 @@ void liberatr_state::liberatr(machine_config &config) /* basic machine hardware */ m6502_device &maincpu(M6502(config, "maincpu", MASTER_CLOCK/16)); /* 1.25Mhz divided from 20Mhz master clock */ maincpu.set_addrmap(AS_PROGRAM, &liberatr_state::liberatr_map); - maincpu.set_periodic_int(FUNC(driver_device::irq0_line_hold), attotime::from_hz(4*60)); + maincpu.set_periodic_int(FUNC(liberatr_state::irq0_line_hold), attotime::from_hz(4*60)); ER2055(config, m_earom); diff --git a/src/mame/homebrew/gscpm.cpp b/src/mame/homebrew/gscpm.cpp index 0dbbebe454c..f60da754fea 100644 --- a/src/mame/homebrew/gscpm.cpp +++ b/src/mame/homebrew/gscpm.cpp @@ -124,7 +124,6 @@ void gscpm_state::switch_to_ram_w(uint8_t data) void gscpm_state::machine_reset() { - driver_device::machine_reset(); // Install the ROM handler here m_maincpu->space(AS_PROGRAM).unmap_readwrite(0x0000, 0x3fff); // Unmap RAM handler if being rebooted m_maincpu->space(AS_PROGRAM).install_rom(0x0000, 0x3fff, memregion("maincpu")->base()); diff --git a/src/mame/misc/notechan.cpp b/src/mame/misc/notechan.cpp index 099bed1cc41..60324690faf 100644 --- a/src/mame/misc/notechan.cpp +++ b/src/mame/misc/notechan.cpp @@ -511,7 +511,7 @@ void notechan_state::notechan(machine_config &config) Z80(config, m_maincpu, CPU_CLOCK); // unknown... m_maincpu->set_addrmap(AS_PROGRAM, ¬echan_state::notechan_map); m_maincpu->set_addrmap(AS_IO, ¬echan_state::notechan_port_map); - m_maincpu->set_periodic_int(FUNC(driver_device::irq0_line_hold), attotime::from_hz(60)); + m_maincpu->set_periodic_int(FUNC(notechan_state::irq0_line_hold), attotime::from_hz(60)); /* NO VIDEO */ diff --git a/src/mame/trs/mc10.cpp b/src/mame/trs/mc10.cpp index 2ee93ab7e7a..1207e75eab4 100644 --- a/src/mame/trs/mc10.cpp +++ b/src/mame/trs/mc10.cpp @@ -243,8 +243,6 @@ void mc10_state::driver_reset() void mc10_state::driver_start() { - driver_device::driver_start(); - save_item(NAME(m_keyboard_strobe)); address_space &space = m_maincpu->space(AS_PROGRAM); @@ -259,8 +257,6 @@ void mc10_state::driver_start() void alice32_state::driver_start() { - driver_device::driver_start(); - save_item(NAME(m_keyboard_strobe)); address_space &space = m_maincpu->space(AS_PROGRAM); -- cgit v1.2.3