Skip to content

Commit

Permalink
USB: isp1760: Assign resource fields before adding hcd
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nate Case authored and gregkh committed Jun 12, 2008
1 parent 62b5884 commit e6942d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/usb/host/isp1760-hcd.c
Expand Up @@ -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:
Expand Down

0 comments on commit e6942d6

Please sign in to comment.