summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/rc702.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/rc702.cpp')
-rw-r--r--src/mame/drivers/rc702.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/rc702.cpp b/src/mame/drivers/rc702.cpp
index 3118eb79565..d29dfad2a64 100644
--- a/src/mame/drivers/rc702.cpp
+++ b/src/mame/drivers/rc702.cpp
@@ -369,8 +369,8 @@ MACHINE_CONFIG_START(rc702_state::rc702)
MCFG_FLOPPY_DRIVE_SOUND(true)
/* Keyboard */
- MCFG_DEVICE_ADD("keyboard", GENERIC_KEYBOARD, 0)
- MCFG_GENERIC_KEYBOARD_CB(PUT(rc702_state, kbd_put))
+ generic_keyboard_device &keyboard(GENERIC_KEYBOARD(config, "keyboard", 0));
+ keyboard.set_keyboard_callback(FUNC(rc702_state::kbd_put));
TTL7474(config, m_7474, 0);
m_7474->output_cb().set(FUNC(rc702_state::q_w));