usb: dwc3: pci: fix failure path in dwc3_pci_probe()
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Sat, 25 Feb 2012 01:32:14 +0000 (17:32 -0800)
committerFelipe Balbi <balbi@ti.com>
Fri, 2 Mar 2012 10:12:07 +0000 (12:12 +0200)
commit7d26b58735f5badf2b7ce3320c6ba21b603c77a9
treef19c51cb50c20c8111feed608d170478b7cec3f1
parent3e87c42a29f14c7a346f912e084f6ab13ea8288b
usb: dwc3: pci: fix failure path in dwc3_pci_probe()

dwc3_pci_probe() would return success even if the calls to
dwc3_get_device_id() or platform_device_alloc() fail, fix that.

Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/dwc3-pci.c