]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: gadget: legacy gadgets are optional
authorRomain Izard <romain.izard.pro@gmail.com>
Fri, 10 Mar 2017 13:11:41 +0000 (14:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 May 2017 12:30:56 +0000 (14:30 +0200)
commit934c4e338e7e47ea5dd0d642a1615f7d0e42c70a
treea8cb173976ffe0780614f01831baa76626dc0dc8
parent7f7a4b58e257123573c9dd488ac7fea0f7a01df1
usb: gadget: legacy gadgets are optional

commit 6e253d0fbc665b36192b8ed3cecdbb65b413a1eb upstream.

With commit bc49d1d17dcf ("usb: gadget: don't couple configfs to legacy
gadgets"),it is possible to build a modular kernel with both built-in
configfs support and modular legacy gadget drivers.

But when building a kernel without modules, it is also necessary to be
able to build with configfs but without any legacy gadget driver. This
was a possible configuration when the USB_CONFIGFS was a part of the
choice options, but not anymore.

Mark the choice for legacy gadget drivers as optional restores this.

Fixes: bc49d1d17dcf ("usb: gadget: don't couple configfs to legacy gadgets")
Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/Kconfig