USB: musb: check if set_irq_wake succeded and remember it

Without it, in platforms that don't provide irq_chip.set_wake(),
like omap, musb will WARN() on driver removal.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Felipe Balbi
2008-11-24 13:06:53 +02:00
committed by Greg Kroah-Hartman
parent b6a49b8490
commit c48a515525
2 changed files with 7 additions and 2 deletions

View File

@@ -359,6 +359,7 @@ struct musb {
struct otg_transceiver xceiv;
int nIrq;
unsigned irq_wake:1;
struct musb_hw_ep endpoints[MUSB_C_NUM_EPS];
#define control_ep endpoints