summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-at91.c
diff options
context:
space:
mode:
authorNicolas Ferre <nicolas.ferre@atmel.com>2012-03-28 11:49:01 +0200
committerNicolas Ferre <nicolas.ferre@atmel.com>2012-04-04 18:35:33 +0200
commit1887ab2bf236596a5ac7c0e7a90127b468c24081 (patch)
tree150179239b33cbf07e969d2170f088df34d1fa54 /drivers/usb/host/ohci-at91.c
parentUSB: ohci-at91: change maximum number of ports (diff)
downloadlinux-1887ab2bf236596a5ac7c0e7a90127b468c24081.tar.xz
linux-1887ab2bf236596a5ac7c0e7a90127b468c24081.zip
USB: ohci-at91: trivial return code name change
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Alan Stern <stern@rowland.harvard.edu>
Diffstat (limited to 'drivers/usb/host/ohci-at91.c')
-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)
int gpio;
int ret;
- i = ohci_at91_of_init(pdev);
-
- if (i)
- return i;
+ ret = ohci_at91_of_init(pdev);
+ if (ret)
+ return ret;
pdata = pdev->dev.platform_data;