]> git.baikalelectronics.ru Git - kernel.git/commit
usb: of: fix build breakage on !OF
authorFelipe Balbi <balbi@ti.com>
Thu, 17 Dec 2015 15:55:41 +0000 (09:55 -0600)
committerFelipe Balbi <balbi@ti.com>
Thu, 17 Dec 2015 15:55:41 +0000 (09:55 -0600)
commitfeca6509f0ef7d9db02414580a140bffe5cf51e1
tree27868c86e334c1a8612e797ebf766fbc40723cef
parent1a0d6d5dcdc9158d2fd2e3161b81857ca7775796
usb: of: fix build breakage on !OF

If OF is disabled, we will try to define a stub for
of_usb_get_dr_mode_by_phy(), however that missed a
static inline annotation which made us redefine the
stub over and over again. Fix that.

Fixes: 7b4dc8856a60 ("usb: of: add an api to get
dr_mode by the phy node")
Signed-off-by: Felipe Balbi <balbi@ti.com>
include/linux/usb/of.h