Skip to content
Snippets Groups Projects
Commit e6942d63 authored by Nate Case's avatar Nate Case Committed by Greg Kroah-Hartman
Browse files

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: default avatarNate Case <ncase@xes-inc.com>
Acked-by: default avatarSebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 62b58848
No related branches found
No related tags found
No related merge requests found
...@@ -2207,14 +2207,14 @@ struct usb_hcd *isp1760_register(u64 res_start, u64 res_len, int irq, ...@@ -2207,14 +2207,14 @@ struct usb_hcd *isp1760_register(u64 res_start, u64 res_len, int irq,
goto err_put; goto err_put;
} }
ret = usb_add_hcd(hcd, irq, irqflags);
if (ret)
goto err_unmap;
hcd->irq = irq; hcd->irq = irq;
hcd->rsrc_start = res_start; hcd->rsrc_start = res_start;
hcd->rsrc_len = res_len; hcd->rsrc_len = res_len;
ret = usb_add_hcd(hcd, irq, irqflags);
if (ret)
goto err_unmap;
return hcd; return hcd;
err_unmap: err_unmap:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment