summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/midway.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/midway.c')
-rw-r--r--src/mame/audio/midway.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/audio/midway.c b/src/mame/audio/midway.c
index 597f1a6b825..c9b312ca5bd 100644
--- a/src/mame/audio/midway.c
+++ b/src/mame/audio/midway.c
@@ -144,7 +144,7 @@ READ8_MEMBER(midway_ssio_device::ioport_read)
{
static const char *const port[] = { "IP0", "IP1", "IP2", "IP3", "IP4" };
astring tempstr;
- UINT8 result = input_port_read_safe(machine(), subtag(tempstr, port[offset]), 0xff);
+ UINT8 result = ioport(port[offset])->read_safe(0xff);
if (!m_custom_input[offset].isnull())
result = (result & ~m_custom_input_mask[offset]) |
(m_custom_input[offset](space, offset, 0xff) & m_custom_input_mask[offset]);