]> git.baikalelectronics.ru Git - kernel.git/commit
usb: renesas: fix extcon dependency
authorArnd Bergmann <arnd@arndb.de>
Wed, 18 Feb 2015 21:07:07 +0000 (22:07 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 23 Feb 2015 15:14:33 +0000 (09:14 -0600)
commit3e8ee7cea099ec29c3380be5d3e69bb7b36aa64c
treedf769a9f953cf47d093113814cd0aa57bf7e1ff5
parent18ece7aac8b304a6c06d7f6c4218410d36638c51
usb: renesas: fix extcon dependency

The renesas usbhs driver calls extcon_get_edev_by_phandle(), which
is defined in drivers/extcon/extcon-class.c, and that can be a
loadable module. If the extcon-class support is disabled, usbhs
will work correctly for all devices that do not need extcon.

However, if extcon-class is a loadable module, and usbhs is
built-in, the kernel fails to link. In order to solve that,
we need a Kconfig dependency that allows extcon to be disabled
but does not allow usbhs built-in if extcon is a module.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/Kconfig