summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorNate Case <ncase@xes-inc.com>2008-05-21 16:28:20 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-06-11 17:06:33 -0700
commite6942d633be61f1638e08c56ab8244fc9f1c61e3 (patch)
tree863d13908099d4e63b0c26c9555984678641474b /drivers/usb
parent62b5884875fcd4babf6c0c377046f226abbfe491 (diff)
downloadlinux-3.10-e6942d633be61f1638e08c56ab8244fc9f1c61e3.tar.gz
linux-3.10-e6942d633be61f1638e08c56ab8244fc9f1c61e3.tar.bz2
linux-3.10-e6942d633be61f1638e08c56ab8244fc9f1c61e3.zip
USB: isp1760: Assign resource fields before adding hcd
This fixes the bogus "io mem 0x00000000" message printed during driver init due to hcd->rsrc_start being assigned after the call to usb_add_hcd(). Signed-off-by: Nate Case <ncase@xes-inc.com> Acked-by: Sebastian Siewior <bigeasy@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/isp1760-hcd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/isp1760-hcd.c b/drivers/usb/host/isp1760-hcd.c
index c9cec873826..65aa5ecf569 100644
--- a/drivers/usb/host/isp1760-hcd.c
+++ b/drivers/usb/host/isp1760-hcd.c
@@ -2207,14 +2207,14 @@ struct usb_hcd *isp1760_register(u64 res_start, u64 res_len, int irq,
goto err_put;
}
- ret = usb_add_hcd(hcd, irq, irqflags);
- if (ret)
- goto err_unmap;
-
hcd->irq = irq;
hcd->rsrc_start = res_start;
hcd->rsrc_len = res_len;
+ ret = usb_add_hcd(hcd, irq, irqflags);
+ if (ret)
+ goto err_unmap;
+
return hcd;
err_unmap: