Initial INC MR3 commit with EVO/BRAVO included and majority of the compile warnings ...
/drivers/usb/host/ehci-ppc-of.c
blob:36f96da129f5c637208031ec04913be3f0cc6e67 -> blob:ab26c2be366aa8836c7f7bee692df25cf995fd47
--- drivers/usb/host/ehci-ppc-of.c
+++ drivers/usb/host/ehci-ppc-of.c
@@ -192,17 +192,19 @@ ehci_hcd_ppc_of_probe(struct of_device *
}
rv = usb_add_hcd(hcd, irq, 0);
- if (rv == 0)
- return 0;
+ if (rv)
+ goto err_ehci;
+ return 0;
+
+err_ehci:
+ if (ehci->has_amcc_usb23)
+ iounmap(ehci->ohci_hcctrl_reg);
iounmap(hcd->regs);
err_ioremap:
irq_dispose_mapping(irq);
err_irq:
release_mem_region(hcd->rsrc_start, hcd->rsrc_len);
-
- if (ehci->has_amcc_usb23)
- iounmap(ehci->ohci_hcctrl_reg);
err_rmr:
usb_put_hcd(hcd);