File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -120,19 +120,22 @@ static int wfx_sdio_irq_subscribe(void *priv)
120
120
return ret ;
121
121
}
122
122
123
+ flags = irq_get_trigger_type (bus -> of_irq );
124
+ if (!flags )
125
+ flags = IRQF_TRIGGER_HIGH ;
126
+ flags |= IRQF_ONESHOT ;
127
+ ret = devm_request_threaded_irq (& bus -> func -> dev , bus -> of_irq , NULL ,
128
+ wfx_sdio_irq_handler_ext , flags ,
129
+ "wfx" , bus );
130
+ if (ret )
131
+ return ret ;
123
132
sdio_claim_host (bus -> func );
124
133
cccr = sdio_f0_readb (bus -> func , SDIO_CCCR_IENx , NULL );
125
134
cccr |= BIT (0 );
126
135
cccr |= BIT (bus -> func -> num );
127
136
sdio_f0_writeb (bus -> func , cccr , SDIO_CCCR_IENx , NULL );
128
137
sdio_release_host (bus -> func );
129
- flags = irq_get_trigger_type (bus -> of_irq );
130
- if (!flags )
131
- flags = IRQF_TRIGGER_HIGH ;
132
- flags |= IRQF_ONESHOT ;
133
- return devm_request_threaded_irq (& bus -> func -> dev , bus -> of_irq , NULL ,
134
- wfx_sdio_irq_handler_ext , flags ,
135
- "wfx" , bus );
138
+ return 0 ;
136
139
}
137
140
138
141
static int wfx_sdio_irq_unsubscribe (void * priv )
You can’t perform that action at this time.
0 commit comments