]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 20 Jun 2017 08:50:16 +0000 (10:50 +0200)
commitfef8e305196dad0bf38e3c904c7a5a5218c47a3e
tree9d9d1692008789e37c8979980ae7634a18f1b1ed
parent85773e0b7a553274d133899d62735da823d754b5
usb: gadget: legacy gadgets are optional

BugLink: http://bugs.launchpad.net/bugs/1692898
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>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/usb/gadget/Kconfig