summaryrefslogtreecommitdiffstats
path: root/include/linux/usb/of.h
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2015-09-21 11:14:34 +0300
committerFelipe Balbi <balbi@ti.com>2015-09-27 10:54:31 -0500
commit06e7114f0d8297278eb24f4e9bee3393a94bd8ce (patch)
tree9a4759e115df3f93c04bccc2fc4ef42fa172af02 /include/linux/usb/of.h
parent666472733b8ce20716037c0d866395db54aa8c1d (diff)
downloadblackbird-obmc-linux-06e7114f0d8297278eb24f4e9bee3393a94bd8ce.tar.gz
blackbird-obmc-linux-06e7114f0d8297278eb24f4e9bee3393a94bd8ce.zip
usb: common: of_usb_get_dr_mode to usb_get_dr_mode
By using the unified device property interface, the function can be made available for all platforms and not just the ones using DT. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/usb/of.h')
-rw-r--r--include/linux/usb/of.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/usb/of.h b/include/linux/usb/of.h
index ff23fea49fca..c3fe9e48ce27 100644
--- a/include/linux/usb/of.h
+++ b/include/linux/usb/of.h
@@ -12,16 +12,10 @@
#include <linux/usb/phy.h>
#if IS_ENABLED(CONFIG_OF)
-enum usb_dr_mode of_usb_get_dr_mode(struct device_node *np);
bool of_usb_host_tpl_support(struct device_node *np);
int of_usb_update_otg_caps(struct device_node *np,
struct usb_otg_caps *otg_caps);
#else
-static inline enum usb_dr_mode of_usb_get_dr_mode(struct device_node *np)
-{
- return USB_DR_MODE_UNKNOWN;
-}
-
static inline bool of_usb_host_tpl_support(struct device_node *np)
{
return false;
OpenPOWER on IntegriCloud