diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2012-08-20 18:34:46 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-09-06 16:52:28 (GMT) |
commit | 7effdbd6512083e21c007edbaca0ceff4aa5159f (patch) | |
tree | e511f5e2f9e65c66b58db5fb3716129f0e07a7b4 /scripts/selinux | |
parent | ff41aaa3b6c181a713078d8ad96da4ba822de436 (diff) | |
download | linux-fsl-qoriq-7effdbd6512083e21c007edbaca0ceff4aa5159f.tar.xz |
usb: musb: musbhsdma: fix IRQ check
dma_controller_create() in this MUSB DMA driver only regards 0 as a wrong IRQ
number, despite platform_get_irq_byname() that it calls returns -ENXIO in that
case. It leads to calling request_irq() with a negative IRQ number, and when it
naturally fails, the following is printed to the console:
request_irq -6 failed!
and the DMA controller is not created.
Fix this function 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>
Diffstat (limited to 'scripts/selinux')
0 files changed, 0 insertions, 0 deletions