usb: host: ohci-pxa27x: propagate the irq error code
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sat, 13 Feb 2016 22:10:49 +0000 (23:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 01:06:43 +0000 (17:06 -0800)
commitc3853d5a70c956a4be6f6009cf46c11a03b24d4e
tree4c5df62e98b539c346c0c1ed6d9a159ea7812bd2
parenta81cf9799ad7299b03a4dff020d9685f9ac5f3e0
usb: host: ohci-pxa27x: propagate the irq error code

In several drivers in the pxa architecture, it was found that the
platform_get_irq() was not propagated. This breaks the the device-tree
probe deferral path, if -EPROBE_DEFER is returned. Unfortunately, the
error return in this case is transformed into -ENXIO, breaking the
deferral mechanism.

Even if in this specific case the driver was not broken, because the
interrupt controller is always probed before drivers, propagate the
proper return code.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-pxa27x.c