usb: musb: core: fix IRQ check
commit541079de88735152a993ff93e90096643730a054
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Fri, 10 Dec 2010 18:03:29 +0000 (10 21:03 +0300)
committerFelipe Balbi <balbi@ti.com>
Tue, 1 Feb 2011 08:41:29 +0000 (1 10:41 +0200)
treef01ade724912a671831f710f1d2945808b195269
parent456bb1697ec08c034449c81e03094fe26bedb9e9
usb: musb: core: fix IRQ check

musb_probe() only regards 0 as a wrong IRQ number, despite platform_get_irq()
that it calls returns -ENXIO in that case. It leads to musb_init_controller()
calling request_irq() with a negative IRQ number, and when it naturally
fails, the following is printed to the console:

request_irq -6 failed!
musb_init_controller failed with status -19

Fix musb_probe() to filter out the error values as well as 0.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c