mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
USB: musb free_irq bugfix
Fixes insert module failure as free_irq() was not done in previous rmmod. Signed-off-by: Ajay Kumar Gupta <[email protected]> Acked-by: Felipe Balbi <[email protected]> Signed-off-by: David Brownell <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
37daa925cf
commit
97a3989681
1 changed files with 3 additions and 2 deletions
|
|
@ -1824,8 +1824,9 @@ static void musb_free(struct musb *musb)
|
|||
musb_gadget_cleanup(musb);
|
||||
#endif
|
||||
|
||||
if (musb->nIrq >= 0 && musb->irq_wake) {
|
||||
disable_irq_wake(musb->nIrq);
|
||||
if (musb->nIrq >= 0) {
|
||||
if (musb->irq_wake)
|
||||
disable_irq_wake(musb->nIrq);
|
||||
free_irq(musb->nIrq, musb);
|
||||
}
|
||||
if (is_dma_capable() && musb->dma_controller) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue