aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/host/ohci-at91.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c
index 7cf4797a601e..09f597ad6e00 100644
--- a/drivers/usb/host/ohci-at91.c
+++ b/drivers/usb/host/ohci-at91.c
@@ -552,10 +552,9 @@ static int ohci_hcd_at91_drv_probe(struct platform_device *pdev)
552 int gpio; 552 int gpio;
553 int ret; 553 int ret;
554 554
555 i = ohci_at91_of_init(pdev); 555 ret = ohci_at91_of_init(pdev);
556 556 if (ret)
557 if (i) 557 return ret;
558 return i;
559 558
560 pdata = pdev->dev.platform_data; 559 pdata = pdev->dev.platform_data;
561 560