File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -789,18 +789,13 @@ void __enable_irq(struct irq_desc *desc)
789
789
*/
790
790
void enable_irq (unsigned int irq )
791
791
{
792
- unsigned long flags ;
793
- struct irq_desc * desc = irq_get_desc_buslock (irq , & flags , IRQ_GET_DESC_CHECK_GLOBAL );
794
-
795
- if (!desc )
796
- return ;
797
- if (WARN (!desc -> irq_data .chip ,
798
- KERN_ERR "enable_irq before setup/request_irq: irq %u\n" , irq ))
799
- goto out ;
792
+ scoped_irqdesc_get_and_lock (irq , IRQ_GET_DESC_CHECK_GLOBAL ) {
793
+ struct irq_desc * desc = scoped_irqdesc ;
800
794
801
- __enable_irq (desc );
802
- out :
803
- irq_put_desc_busunlock (desc , flags );
795
+ if (WARN (!desc -> irq_data .chip , "enable_irq before setup/request_irq: irq %u\n" , irq ))
796
+ return ;
797
+ __enable_irq (desc );
798
+ }
804
799
}
805
800
EXPORT_SYMBOL (enable_irq );
806
801
You can’t perform that action at this time.
0 commit comments