diff options
author | David Brownell <david-b@pacbell.net> | 2005-05-06 10:02:01 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-27 17:43:53 -0400 |
commit | 028b271b687714f9fc7a1e89bb79f1fbeef154ee (patch) | |
tree | c9cd9c93737ab5fd6a7aac3f243c9a5274654f91 /drivers/usb | |
parent | 4244f72436ab77c3c29a6447af81734ab3925d85 (diff) |
[PATCH] USB: Kconfig fixes for usb/gadget
This prevents gadget drivers from being selected when no controller has
been selected, by adding an additional boolean and depending on it.
It's mostly to help "allmodconfig".
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/Kconfig | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 3b24f9f2c234..ff075a53c8d6 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig | |||
@@ -53,6 +53,9 @@ config USB_GADGET_DEBUG_FILES | |||
53 | driver on a new board. Enable these files by choosing "Y" | 53 | driver on a new board. Enable these files by choosing "Y" |
54 | here. If in doubt, or to conserve kernel memory, say "N". | 54 | here. If in doubt, or to conserve kernel memory, say "N". |
55 | 55 | ||
56 | config USB_GADGET_SELECTED | ||
57 | boolean | ||
58 | |||
56 | # | 59 | # |
57 | # USB Peripheral Controller Support | 60 | # USB Peripheral Controller Support |
58 | # | 61 | # |
@@ -85,6 +88,7 @@ config USB_NET2280 | |||
85 | tristate | 88 | tristate |
86 | depends on USB_GADGET_NET2280 | 89 | depends on USB_GADGET_NET2280 |
87 | default USB_GADGET | 90 | default USB_GADGET |
91 | select USB_GADGET_SELECTED | ||
88 | 92 | ||
89 | config USB_GADGET_PXA2XX | 93 | config USB_GADGET_PXA2XX |
90 | boolean "PXA 25x or IXP 4xx" | 94 | boolean "PXA 25x or IXP 4xx" |
@@ -105,6 +109,7 @@ config USB_PXA2XX | |||
105 | tristate | 109 | tristate |
106 | depends on USB_GADGET_PXA2XX | 110 | depends on USB_GADGET_PXA2XX |
107 | default USB_GADGET | 111 | default USB_GADGET |
112 | select USB_GADGET_SELECTED | ||
108 | 113 | ||
109 | # if there's only one gadget driver, using only two bulk endpoints, | 114 | # if there's only one gadget driver, using only two bulk endpoints, |
110 | # don't waste memory for the other endpoints | 115 | # don't waste memory for the other endpoints |
@@ -134,6 +139,7 @@ config USB_GOKU | |||
134 | tristate | 139 | tristate |
135 | depends on USB_GADGET_GOKU | 140 | depends on USB_GADGET_GOKU |
136 | default USB_GADGET | 141 | default USB_GADGET |
142 | select USB_GADGET_SELECTED | ||
137 | 143 | ||
138 | 144 | ||
139 | config USB_GADGET_LH7A40X | 145 | config USB_GADGET_LH7A40X |
@@ -146,6 +152,7 @@ config USB_LH7A40X | |||
146 | tristate | 152 | tristate |
147 | depends on USB_GADGET_LH7A40X | 153 | depends on USB_GADGET_LH7A40X |
148 | default USB_GADGET | 154 | default USB_GADGET |
155 | select USB_GADGET_SELECTED | ||
149 | 156 | ||
150 | 157 | ||
151 | config USB_GADGET_OMAP | 158 | config USB_GADGET_OMAP |
@@ -167,6 +174,7 @@ config USB_OMAP | |||
167 | tristate | 174 | tristate |
168 | depends on USB_GADGET_OMAP | 175 | depends on USB_GADGET_OMAP |
169 | default USB_GADGET | 176 | default USB_GADGET |
177 | select USB_GADGET_SELECTED | ||
170 | 178 | ||
171 | config USB_OTG | 179 | config USB_OTG |
172 | boolean "OTG Support" | 180 | boolean "OTG Support" |
@@ -207,6 +215,7 @@ config USB_DUMMY_HCD | |||
207 | tristate | 215 | tristate |
208 | depends on USB_GADGET_DUMMY_HCD | 216 | depends on USB_GADGET_DUMMY_HCD |
209 | default USB_GADGET | 217 | default USB_GADGET |
218 | select USB_GADGET_SELECTED | ||
210 | 219 | ||
211 | # NOTE: Please keep dummy_hcd LAST so that "real hardware" appears | 220 | # NOTE: Please keep dummy_hcd LAST so that "real hardware" appears |
212 | # first and will be selected by default. | 221 | # first and will be selected by default. |
@@ -226,7 +235,7 @@ config USB_GADGET_DUALSPEED | |||
226 | # | 235 | # |
227 | choice | 236 | choice |
228 | tristate "USB Gadget Drivers" | 237 | tristate "USB Gadget Drivers" |
229 | depends on USB_GADGET | 238 | depends on USB_GADGET && USB_GADGET_SELECTED |
230 | default USB_ETH | 239 | default USB_ETH |
231 | help | 240 | help |
232 | A Linux "Gadget Driver" talks to the USB Peripheral Controller | 241 | A Linux "Gadget Driver" talks to the USB Peripheral Controller |