Forráskód Böngészése

usb: gadget: f_printer: fix dependencies

If f_printer is selected without legacy g_printer, it should
depend on USB_CONFIGFS which pulls in libcomposite.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Andrzej Pietrasiewicz 10 éve
szülő
commit
f4b4976b6e
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      drivers/usb/gadget/Kconfig

+ 1 - 0
drivers/usb/gadget/Kconfig

@@ -440,6 +440,7 @@ config USB_CONFIGFS_F_UVC
 config USB_CONFIGFS_F_PRINTER
 config USB_CONFIGFS_F_PRINTER
 	bool "Printer function"
 	bool "Printer function"
 	select USB_F_PRINTER
 	select USB_F_PRINTER
+	depends on USB_CONFIGFS
 	help
 	help
 	  The Printer function channels data between the USB host and a
 	  The Printer function channels data between the USB host and a
 	  userspace program driving the print engine. The user space
 	  userspace program driving the print engine. The user space