summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/amspdwy.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/amspdwy.c
parent8d6dcde928536ea088578191d009abdcd30eeedc (diff)
Removal of not needed machine().root_device() (nw)
Diffstat (limited to 'src/mame/drivers/amspdwy.c')
-rw-r--r--src/mame/drivers/amspdwy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/amspdwy.c b/src/mame/drivers/amspdwy.c
index 521c40b6879..a46d66a6eb9 100644
--- a/src/mame/drivers/amspdwy.c
+++ b/src/mame/drivers/amspdwy.c
@@ -37,7 +37,7 @@ Sound: YM2151
UINT8 amspdwy_state::amspdwy_wheel_r( int index )
{
static const char *const portnames[] = { "WHEEL1", "WHEEL2", "AN1", "AN2" };
- UINT8 wheel = machine().root_device().ioport(portnames[2 + index])->read();
+ UINT8 wheel = ioport(portnames[2 + index])->read();
if (wheel != m_wheel_old[index])
{
wheel = (wheel & 0x7fff) - (wheel & 0x8000);
@@ -48,7 +48,7 @@ UINT8 amspdwy_state::amspdwy_wheel_r( int index )
m_wheel_old[index] = wheel;
}
- return m_wheel_return[index] | machine().root_device().ioport(portnames[index])->read();
+ return m_wheel_return[index] | ioport(portnames[index])->read();
}
READ8_MEMBER(amspdwy_state::amspdwy_wheel_0_r)
@@ -64,7 +64,7 @@ READ8_MEMBER(amspdwy_state::amspdwy_wheel_1_r)
READ8_MEMBER(amspdwy_state::amspdwy_sound_r)
{
ym2151_device *device = machine().device<ym2151_device>("ymsnd");
- return (device->status_r(space, 0) & ~ 0x30) | machine().root_device().ioport("IN0")->read();
+ return (device->status_r(space, 0) & ~ 0x30) | ioport("IN0")->read();
}
WRITE8_MEMBER(amspdwy_state::amspdwy_sound_w)