diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2014-03-31 23:50:42 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2014-04-05 09:18:59 -0400 |
commit | 48dc6a65d53781390562c80004cb24ba83f0a822 (patch) | |
tree | 3f82ccb0b4239af2ae86c5460dab97db59430e5c /src | |
parent | 8abc6a895a67b711997fb96beb6b8e7ae47fe059 (diff) | |
download | seabios-hppa-48dc6a65d53781390562c80004cb24ba83f0a822.zip seabios-hppa-48dc6a65d53781390562c80004cb24ba83f0a822.tar.gz seabios-hppa-48dc6a65d53781390562c80004cb24ba83f0a822.tar.bz2 |
usb: Only disable HID devices if both USB_MOUSE and USB_KEYBOARD are off.
Fix typo in code causing both CONFIG_USB_MOUSE and CONFIG_USB_KEYBOARD
to be effectively disabled if either is disabled.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/hw/usb-hid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hw/usb-hid.c b/src/hw/usb-hid.c index e94aa16..13f134c 100644 --- a/src/hw/usb-hid.c +++ b/src/hw/usb-hid.c @@ -109,7 +109,7 @@ usb_mouse_setup(struct usbdevice_s *usbdev int usb_hid_setup(struct usbdevice_s *usbdev) { - if (! CONFIG_USB_KEYBOARD || ! CONFIG_USB_MOUSE) + if (! CONFIG_USB_KEYBOARD && ! CONFIG_USB_MOUSE) return -1; dprintf(2, "usb_hid_setup %p\n", usbdev->defpipe); |