]> git.baikalelectronics.ru Git - kernel.git/commit
usb: phy: isp1301: work around tps65010 dependency
authorArnd Bergmann <arnd@arndb.de>
Fri, 10 Apr 2015 22:06:10 +0000 (00:06 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 27 Apr 2015 19:45:14 +0000 (14:45 -0500)
commit09d2e18254ea9625ea80697484383caed909b50d
tree42de789963fa14f7f59ad604c2b878ea8011b890
parent1a244ee273f74c55c9655321b6bd6208ddb280e4
usb: phy: isp1301: work around tps65010 dependency

The isp1301-omap driver contains special hooks for the TPS65010
power management controller. It provides its own 'tps65010_set_vbus_draw'
wrapper in case that driver is not enabled through Kconfig, but
fails to handle the case where isp1301-omap is built-in but TPS65010
is a loadable module, which currently results in a link error:

drivers/built-in.o: In function `isp1301_set_power':
:(.text+0x14e188): undefined reference to `tps65010_set_vbus_draw'

This is a workaround to use the same trick as before also when
tps65010 is a module. Doing a proper fix would require much larger
changes to the driver that is not really worth it when the usb-phy
drivers are going to eventually get replaced with generic-phy
drivers.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-isp1301-omap.c