]> git.baikalelectronics.ru Git - kernel.git/commit
usb: of: fix build breakage caused by recent patches
authorFelipe Balbi <balbi@ti.com>
Tue, 30 Jul 2013 06:09:15 +0000 (09:09 +0300)
committerFelipe Balbi <balbi@ti.com>
Tue, 30 Jul 2013 06:09:15 +0000 (09:09 +0300)
commit226cf087e4cb6e02fd7ff1389755a0a2f9278a39
treeabdcdd407be51463e3cbf49e1908b5ca20f3349b
parent9a6c8508ca9eb1351a6f5bc101b8d1678c9f87c9
usb: of: fix build breakage caused by recent patches

commit af9b4c1 (usb: phy: make PHY driver selection
possible by controller drivers) changed the rules
on how drivers/usb/phy/of.c would be compiled and
failed to update include/linux/usb/of.h accordingly.

Because of that, we can fall into situations where
of_usb_get_phy_mode() is redefined. In order to fix
the error, we update the IS_ENABLED() check in
include/linux/usb/of.h to reflect the condition
where of.c is built.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Felipe Balbi <balbi@ti.com>
include/linux/usb/of.h