[PATCH 2.6] USB_GADGET depends on USB

From: Jakub Bogusz
Date: Wed Mar 03 2004 - 08:59:36 EST


Up to current cset it's possible to select USB_GADGET even if USB is
disabled (causing only compilation errors). This patch adds depends
rules to disallow USB_GADGET if USB is not enabled (similar to those
found in other drivers/usb/*/Kconfig files).


--
Jakub Bogusz http://cyber.cs.net.pl/~qboosh/
PLD Team http://www.pld-linux.org/
--- linux-2.6.4-rc1/drivers/usb/gadget/Kconfig.orig 2004-02-27 22:21:00.000000000 +0000
+++ linux-2.6.4-rc1/drivers/usb/gadget/Kconfig 2004-03-03 13:50:01.000000000 +0000
@@ -4,9 +4,11 @@
# (b) the gadget driver using it.
#
menu "USB Gadget Support"
+ depends on USB

config USB_GADGET
tristate "Support for USB Gadgets"
+ depends on USB
help
USB is a master/slave protocol, organized with one master
host (such as a PC) controlling up to 127 peripheral devices.