Skip to content

Commit be0c801

Browse files
AdrianBunkgregkh
authored andcommitted
USB: fix the USB_GADGET_DUMMY_HCD dependencies
If USB=m, USB_GADGET=y, the option USB_GADGET_DUMMY_HCD mustn't be offered since selecting it results in a compile error. This patch fixes kernel Bugzilla #6534 reported by Toralf Förster. Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 168ffc4 commit be0c801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/gadget/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ config USB_AT91
207207

208208
config USB_GADGET_DUMMY_HCD
209209
boolean "Dummy HCD (DEVELOPMENT)"
210-
depends on USB && EXPERIMENTAL
210+
depends on (USB=y || (USB=m && USB_GADGET=m)) && EXPERIMENTAL
211211
select USB_GADGET_DUALSPEED
212212
help
213213
This host controller driver emulates USB, looping all data transfer

0 commit comments

Comments
 (0)