aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-jz4740.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ohci-jz4740.c')
-rw-r--r--drivers/usb/host/ohci-jz4740.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/host/ohci-jz4740.c b/drivers/usb/host/ohci-jz4740.c
index 8062bb9dea16..d4ef53990d73 100644
--- a/drivers/usb/host/ohci-jz4740.c
+++ b/drivers/usb/host/ohci-jz4740.c
@@ -221,7 +221,6 @@ static int jz4740_ohci_probe(struct platform_device *pdev)
221 return 0; 221 return 0;
222 222
223err_disable: 223err_disable:
224 platform_set_drvdata(pdev, NULL);
225 if (jz4740_ohci->vbus) { 224 if (jz4740_ohci->vbus) {
226 regulator_disable(jz4740_ohci->vbus); 225 regulator_disable(jz4740_ohci->vbus);
227 regulator_put(jz4740_ohci->vbus); 226 regulator_put(jz4740_ohci->vbus);
@@ -246,8 +245,6 @@ static int jz4740_ohci_remove(struct platform_device *pdev)
246 245
247 usb_remove_hcd(hcd); 246 usb_remove_hcd(hcd);
248 247
249 platform_set_drvdata(pdev, NULL);
250
251 if (jz4740_ohci->vbus) { 248 if (jz4740_ohci->vbus) {
252 regulator_disable(jz4740_ohci->vbus); 249 regulator_disable(jz4740_ohci->vbus);
253 regulator_put(jz4740_ohci->vbus); 250 regulator_put(jz4740_ohci->vbus);