summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/cd2650.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/cd2650.cpp')
-rw-r--r--src/mame/drivers/cd2650.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/cd2650.cpp b/src/mame/drivers/cd2650.cpp
index e77327012e8..7067898726c 100644
--- a/src/mame/drivers/cd2650.cpp
+++ b/src/mame/drivers/cd2650.cpp
@@ -321,8 +321,8 @@ MACHINE_CONFIG_START(cd2650_state::cd2650)
BEEP(config, "beeper", 950).add_route(ALL_OUTPUTS, "mono", 0.50); // guess
/* Devices */
- MCFG_DEVICE_ADD("keyboard", GENERIC_KEYBOARD, 0)
- MCFG_GENERIC_KEYBOARD_CB(PUT(cd2650_state, kbd_put))
+ generic_keyboard_device &keyboard(GENERIC_KEYBOARD(config, "keyboard", 0));
+ keyboard.set_keyboard_callback(FUNC(cd2650_state::kbd_put));
MCFG_CASSETTE_ADD( "cassette" )
MACHINE_CONFIG_END