diff options
| author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-06-06 15:51:01 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-06-06 15:51:01 -0700 |
| commit | ef3b89fee49e4ba187aa8db6956fb9a18ef87633 (patch) | |
| tree | b11f15723457bc3505cc5208a2c57496184ddbce /usb.current | |
| parent | 4a4f8fc0d59a876cea36b572222bd4e78a6be913 (diff) | |
| download | patches-ef3b89fee49e4ba187aa8db6956fb9a18ef87633.tar.gz | |
loads of new patches...
Diffstat (limited to 'usb.current')
| -rw-r--r-- | usb.current/usb-isp1760-assign-resource-fields-before-adding-hcd.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/usb.current/usb-isp1760-assign-resource-fields-before-adding-hcd.patch b/usb.current/usb-isp1760-assign-resource-fields-before-adding-hcd.patch new file mode 100644 index 00000000000000..d99624262e7287 --- /dev/null +++ b/usb.current/usb-isp1760-assign-resource-fields-before-adding-hcd.patch @@ -0,0 +1,42 @@ +From ncase@xes-inc.com Fri Jun 6 15:07:08 2008 +From: Nate Case <ncase@xes-inc.com> +Date: Wed, 21 May 2008 16:28:20 -0500 +Subject: USB: isp1760: Assign resource fields before adding hcd +To: Sebastian Siewior <bigeasy@linutronix.de> +Cc: Greg Kroah-Hartman <gregkh@suse.de>, linux-usb@vger.kernel.org, linuxppc-dev <linuxppc-dev@ozlabs.org> +Message-ID: <1211405300.13845.627.camel@localhost.localdomain> + + +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> + +--- + drivers/usb/host/isp1760-hcd.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +--- 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 + 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: |
