File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -496,11 +496,10 @@ static void orion_gpio_unmask_irq(struct irq_data *d)
496
496
u32 reg_val ;
497
497
u32 mask = d -> mask ;
498
498
499
- irq_gc_lock ( gc );
499
+ guard ( raw_spinlock )( & gc -> lock );
500
500
reg_val = irq_reg_readl (gc , ct -> regs .mask );
501
501
reg_val |= mask ;
502
502
irq_reg_writel (gc , reg_val , ct -> regs .mask );
503
- irq_gc_unlock (gc );
504
503
}
505
504
506
505
static void orion_gpio_mask_irq (struct irq_data * d )
@@ -510,11 +509,10 @@ static void orion_gpio_mask_irq(struct irq_data *d)
510
509
u32 mask = d -> mask ;
511
510
u32 reg_val ;
512
511
513
- irq_gc_lock ( gc );
512
+ guard ( raw_spinlock )( & gc -> lock );
514
513
reg_val = irq_reg_readl (gc , ct -> regs .mask );
515
514
reg_val &= ~mask ;
516
515
irq_reg_writel (gc , reg_val , ct -> regs .mask );
517
- irq_gc_unlock (gc );
518
516
}
519
517
520
518
void __init orion_gpio_init (int gpio_base , int ngpio ,
You can’t perform that action at this time.
0 commit comments