summaryrefslogtreecommitdiff
path: root/src/drivers/hdi/ps2/keyboard.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-07-02 13:07:17 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-07-02 13:07:17 +0200
commit834af201bae182e75f8aab9b5befc1ed8740ef79 (patch)
tree3df947d01f784138f74889c645715209267b83e7 /src/drivers/hdi/ps2/keyboard.c
parente3ece7bce558a1168938c1d81b1c235faa772e00 (diff)
downloadabaos-834af201bae182e75f8aab9b5befc1ed8740ef79.tar.gz
abaos-834af201bae182e75f8aab9b5befc1ed8740ef79.tar.bz2
some more vtable initialization fixes
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 )