UPSTREAM: usb: of: fix build breakage on !OF
authorFelipe Balbi <balbi@ti.com>
Thu, 17 Dec 2015 15:55:41 +0000 (09:55 -0600)
committerWu Liang feng <wulf@rock-chips.com>
Mon, 12 Sep 2016 02:57:24 +0000 (10:57 +0800)
commit8fdfae6cb796865ef2d6eb0a5d15237f41ca7d5a
treede2a00a477d1cade3fffdefbaada1b9e91384c6d
parentb9c8b9e5b21128413ede52ae80cb65ca8a46dd79
UPSTREAM: 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.

Change-Id: I0e3594d2beb29273343dacf0af73f159ad30a35d
Fixes: 98bfb3946695 ("usb: of: add an api to get
dr_mode by the phy node")
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit be99c84300950e876074916b215b511f69f83d3b)
include/linux/usb/of.h