diff options
Diffstat (limited to 'drivers/usb/host/ehci-mxc.c')
-rw-r--r-- | drivers/usb/host/ehci-mxc.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c index e2004de6ad3d..e9301fb97eaa 100644 --- a/drivers/usb/host/ehci-mxc.c +++ b/drivers/usb/host/ehci-mxc.c | |||
@@ -57,7 +57,6 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev) | |||
57 | struct usb_hcd *hcd; | 57 | struct usb_hcd *hcd; |
58 | struct resource *res; | 58 | struct resource *res; |
59 | int irq, ret; | 59 | int irq, ret; |
60 | unsigned int flags; | ||
61 | struct ehci_mxc_priv *priv; | 60 | struct ehci_mxc_priv *priv; |
62 | struct device *dev = &pdev->dev; | 61 | struct device *dev = &pdev->dev; |
63 | struct ehci_hcd *ehci; | 62 | struct ehci_hcd *ehci; |
@@ -162,25 +161,6 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev) | |||
162 | if (ret) | 161 | if (ret) |
163 | goto err_add; | 162 | goto err_add; |
164 | 163 | ||
165 | if (pdata->otg) { | ||
166 | /* | ||
167 | * efikamx and efikasb have some hardware bug which is | ||
168 | * preventing usb to work unless CHRGVBUS is set. | ||
169 | * It's in violation of USB specs | ||
170 | */ | ||
171 | if (machine_is_mx51_efikamx() || machine_is_mx51_efikasb()) { | ||
172 | flags = usb_phy_io_read(pdata->otg, | ||
173 | ULPI_OTG_CTRL); | ||
174 | flags |= ULPI_OTG_CTRL_CHRGVBUS; | ||
175 | ret = usb_phy_io_write(pdata->otg, flags, | ||
176 | ULPI_OTG_CTRL); | ||
177 | if (ret) { | ||
178 | dev_err(dev, "unable to set CHRVBUS\n"); | ||
179 | goto err_add; | ||
180 | } | ||
181 | } | ||
182 | } | ||
183 | |||
184 | return 0; | 164 | return 0; |
185 | 165 | ||
186 | err_add: | 166 | err_add: |