USB: Fix usb_add_hcd() checkpatch errors.
The irq enabling code is going to be refactored into a new function, so clean up some checkpatch errors before moving it. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
This commit is contained in:
parent
da13051cc7
commit
abc4f9b099
|
@ -2325,10 +2325,12 @@ int usb_add_hcd(struct usb_hcd *hcd,
|
||||||
|
|
||||||
snprintf(hcd->irq_descr, sizeof(hcd->irq_descr), "%s:usb%d",
|
snprintf(hcd->irq_descr, sizeof(hcd->irq_descr), "%s:usb%d",
|
||||||
hcd->driver->description, hcd->self.busnum);
|
hcd->driver->description, hcd->self.busnum);
|
||||||
if ((retval = request_irq(irqnum, &usb_hcd_irq, irqflags,
|
retval = request_irq(irqnum, &usb_hcd_irq, irqflags,
|
||||||
hcd->irq_descr, hcd)) != 0) {
|
hcd->irq_descr, hcd);
|
||||||
|
if (retval != 0) {
|
||||||
dev_err(hcd->self.controller,
|
dev_err(hcd->self.controller,
|
||||||
"request interrupt %d failed\n", irqnum);
|
"request interrupt %d failed\n",
|
||||||
|
irqnum);
|
||||||
goto err_request_irq;
|
goto err_request_irq;
|
||||||
}
|
}
|
||||||
hcd->irq = irqnum;
|
hcd->irq = irqnum;
|
||||||
|
@ -2345,7 +2347,8 @@ int usb_add_hcd(struct usb_hcd *hcd,
|
||||||
(unsigned long long)hcd->rsrc_start);
|
(unsigned long long)hcd->rsrc_start);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((retval = hcd->driver->start(hcd)) < 0) {
|
retval = hcd->driver->start(hcd);
|
||||||
|
if (retval < 0) {
|
||||||
dev_err(hcd->self.controller, "startup error %d\n", retval);
|
dev_err(hcd->self.controller, "startup error %d\n", retval);
|
||||||
goto err_hcd_driver_start;
|
goto err_hcd_driver_start;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue