kernel-rpi/kernel-rpi-3.14.6.20140831git-buildfix-otg_whitelist.patch

14 lines
468 B
Diff

--- linux-3.14.6.20140831git/drivers/usb/core/otg_whitelist.h.orig 2014-09-05 12:02:52.815853952 +0200
+++ linux-3.14.6.20140831git/drivers/usb/core/otg_whitelist.h 2014-09-05 12:04:00.539621786 +0200
@@ -107,8 +107,10 @@
if (dev->descriptor.idVendor == 0x1a0a &&
dev->descriptor.idProduct == 0xbadd) {
return 0;
+#ifndef CONFIG_USB_OTG_WHITELIST
} else if (!enable_whitelist) {
return 1;
+#endif
} else {
#ifdef DEBUG