|
@@ -1824,8 +1824,9 @@ static void musb_free(struct musb *musb)
|
|
musb_gadget_cleanup(musb);
|
|
musb_gadget_cleanup(musb);
|
|
#endif
|
|
#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);
|
|
free_irq(musb->nIrq, musb);
|
|
}
|
|
}
|
|
if (is_dma_capable() && musb->dma_controller) {
|
|
if (is_dma_capable() && musb->dma_controller) {
|