diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-28 18:27:10 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-28 18:27:10 +0000 |
commit | 6e6b73631301d41e8b18de4d35937bc78b0117f3 (patch) | |
tree | 486b45bbe8c6cceb18161b7bbec986324fc33492 /hw/adb.c | |
parent | b4e237aae774a6dd3de2c3db9f87012d48ab6716 (diff) |
Register reset handlers
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6136 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/adb.c')
-rw-r--r-- | hw/adb.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -122,6 +122,8 @@ ADBDevice *adb_register_device(ADBBusState *s, int devaddr, d->devreq = devreq; d->devreset = devreset; d->opaque = opaque; + qemu_register_reset(devreset, d); + d->devreset(d); return d; } @@ -278,7 +280,6 @@ void adb_kbd_init(ADBBusState *bus) s = qemu_mallocz(sizeof(KBDState)); d = adb_register_device(bus, ADB_KEYBOARD, adb_kbd_request, adb_kbd_reset, s); - adb_kbd_reset(d); qemu_add_kbd_event_handler(adb_kbd_put_keycode, d); } @@ -420,6 +421,5 @@ void adb_mouse_init(ADBBusState *bus) s = qemu_mallocz(sizeof(MouseState)); d = adb_register_device(bus, ADB_MOUSE, adb_mouse_request, adb_mouse_reset, s); - adb_mouse_reset(d); qemu_add_mouse_event_handler(adb_mouse_event, d, 0, "QEMU ADB Mouse"); } |