summaryrefslogtreecommitdiff
path: root/src/drivers/hdi/ps2/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/hdi/ps2/keyboard.c')
-rw-r--r--src/drivers/hdi/ps2/keyboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/hdi/ps2/keyboard.c b/src/drivers/hdi/ps2/keyboard.c
index d7d8d88..eddb1dc 100644
--- a/src/drivers/hdi/ps2/keyboard.c
+++ b/src/drivers/hdi/ps2/keyboard.c
@@ -84,7 +84,7 @@ void keyboard_init( keyboard_t *keyboard, keyboard_event_handler_t handler, void
keyboard->handler = handler;
keyboard->context = context;
- keyboard->base.vtable = &keyboard_vtable.base;
+ ((driver_t *)keyboard)->vtable = (driver_vtable_t *)&keyboard_vtable;
}
void keyboard_activate( void *obj )