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)
commitbe99c84300950e876074916b215b511f69f83d3b
tree27868c86e334c1a8612e797ebf766fbc40723cef
parentb7bd98b7db9fc8fe19da1a5ff0215311c6b95e46
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: 98bfb3946695 ("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