summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/homedata.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2013-02-13 15:41:03 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2013-02-13 15:41:03 +0000
commit798b2611c9a0c01ec5ebebb386d3c94581dc51b3 (patch)
treeffc0210be76b3fb2676caeb95161bdbfbbb27f4c /src/mame/drivers/homedata.c
parent8d6dcde928536ea088578191d009abdcd30eeedc (diff)
Removal of not needed machine().root_device() (nw)
Diffstat (limited to 'src/mame/drivers/homedata.c')
-rw-r--r--src/mame/drivers/homedata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/homedata.c b/src/mame/drivers/homedata.c
index e372e16cec5..91be83bb5b2 100644
--- a/src/mame/drivers/homedata.c
+++ b/src/mame/drivers/homedata.c
@@ -506,7 +506,7 @@ WRITE8_MEMBER(homedata_state::pteacher_upd7807_portc_w)
WRITE8_MEMBER(homedata_state::bankswitch_w)
{
- int last_bank = (machine().root_device().memregion("maincpu")->bytes() - 0x10000) / 0x4000;
+ int last_bank = (memregion("maincpu")->bytes() - 0x10000) / 0x4000;
/* last bank is fixed and is #0 for us, other banks start from #1 (hence data+1 below)*/
if (data < last_bank)