]> xenbits.xensource.com Git - seabios.git/commitdiff
usb: Only disable HID devices if both USB_MOUSE and USB_KEYBOARD are off.
authorKevin O'Connor <kevin@koconnor.net>
Tue, 1 Apr 2014 03:50:42 +0000 (23:50 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 5 Apr 2014 13:18:59 +0000 (09:18 -0400)
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>
src/hw/usb-hid.c

index e94aa16798dcd0be188f2f6a1f091fc00477d78c..13f134cc3597ab24f5019b4ffe85050f174e6ea9 100644 (file)
@@ -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);