summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Jun <jun.li@freescale.com>2015-06-18 15:08:43 +0800
committerLi Jun <jun.li@freescale.com>2015-07-22 10:22:12 +0800
commit420c8b1558b034107f741495fd7a19eab5b4976e (patch)
treee693bc504cbf950aed675d01e4071a79d80fae3f
parent4c07b7b00871a897ede211b22d90bfafc49affa7 (diff)
MLK-11123-17 usb: common: remove of_usb_otg_adp_support
Since we have of_usb_set_otg_caps to cover all otg related features, remove of_usb_otg_adp_support. Signed-off-by: Li Jun <jun.li@freescale.com> (cherry picked from commit aff0f1027cf1d98ea757f440ac6743eed2d6e168)
-rw-r--r--drivers/usb/common/usb-common.c15
-rw-r--r--include/linux/usb/of.h5
2 files changed, 0 insertions, 20 deletions
diff --git a/drivers/usb/common/usb-common.c b/drivers/usb/common/usb-common.c
index c56b883e34c4..5c11cee617e4 100644
--- a/drivers/usb/common/usb-common.c
+++ b/drivers/usb/common/usb-common.c
@@ -156,21 +156,6 @@ bool of_usb_host_tpl_support(struct device_node *np)
EXPORT_SYMBOL_GPL(of_usb_host_tpl_support);
/**
- * of_usb_otg_adp_support - to get if otg adp is supported by the otg controller
- * @np: Pointer to the given device_node
- *
- * The function gets if the otg port support ADP
- */
-bool of_usb_otg_adp_support(struct device_node *np)
-{
- if (of_find_property(np, "adp-support", NULL))
- return true;
-
- return false;
-}
-EXPORT_SYMBOL_GPL(of_usb_otg_adp_support);
-
-/**
* of_usb_set_otg_caps - to set usb otg capabilities according to
* the passed properties in DT.
* @np: Pointer to the given device_node
diff --git a/include/linux/usb/of.h b/include/linux/usb/of.h
index f652d6062309..63397992d0a2 100644
--- a/include/linux/usb/of.h
+++ b/include/linux/usb/of.h
@@ -15,7 +15,6 @@
enum usb_dr_mode of_usb_get_dr_mode(struct device_node *np);
enum usb_device_speed of_usb_get_maximum_speed(struct device_node *np);
bool of_usb_host_tpl_support(struct device_node *np);
-bool of_usb_otg_adp_support(struct device_node *np);
void of_usb_set_otg_caps(struct device_node *np,
struct usb_otg_caps *otg_caps);
#else
@@ -33,10 +32,6 @@ static inline bool of_usb_host_tpl_support(struct device_node *np)
{
return false;
}
-static inline bool of_usb_otg_srp_support(struct device_node *np)
-{
- return false;
-}
static inline void of_usb_set_otg_caps(struct device_node *np,
struct usb_otg_caps *otg_caps)
{