]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/blobdiff - drivers/usb/dwc3/dwc3-omap.c
Revert "usb: dwc3: debugfs: dual role switch through debugfs entries"
[android-sdk/kernel-video.git] / drivers / usb / dwc3 / dwc3-omap.c
index 96b4c46cbbd2925063b6b71c42ca00e7742f4d7b..4ccdef7333c0e74da0bb99dc9fdcbb2f6bfda906 100644 (file)
@@ -32,7 +32,6 @@
 #include <linux/regulator/consumer.h>
 
 #include <linux/usb/otg.h>
-#include <linux/usb/drd.h>
 
 /*
  * All these registers belong to OMAP's Wrapper around the
@@ -138,6 +137,13 @@ struct dwc3_omap {
        struct regulator        *vbus_reg;
 };
 
+enum omap_dwc3_vbus_id_status {
+       OMAP_DWC3_ID_FLOAT,
+       OMAP_DWC3_ID_GROUND,
+       OMAP_DWC3_VBUS_OFF,
+       OMAP_DWC3_VBUS_VALID,
+};
+
 static inline u32 dwc3_omap_readl(void __iomem *base, u32 offset)
 {
        return readl(base + offset);
@@ -272,28 +278,6 @@ static void dwc3_omap_set_mailbox(struct dwc3_omap *omap,
        }
 }
 
-int dwc3_omap_usbvbus_id_handler(struct device *dev,
-       enum omap_dwc3_vbus_id_status status)
-{
-       struct dwc3_omap        *omap;
-       struct platform_device  *pdev;
-
-       if (!dev)
-               return -ENODEV;
-
-       dev_dbg(omap->dev, "VBUS Connect\n");
-
-       pdev = to_platform_device(dev);
-       omap =  platform_get_drvdata(pdev);
-       if (!omap)
-               return -ENODEV;
-
-       dwc3_omap_set_mailbox(omap, status);
-
-       return 0;
-}
-EXPORT_SYMBOL(dwc3_omap_usbvbus_id_handler);
-
 static irqreturn_t dwc3_omap_interrupt(int irq, void *_omap)
 {
        struct dwc3_omap        *omap = _omap;