File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -449,6 +449,9 @@ static int quad8_events_configure(struct counter_device *counter)
449
449
return - EINVAL ;
450
450
}
451
451
452
+ /* Enable IRQ line */
453
+ irq_enabled |= BIT (event_node -> channel );
454
+
452
455
/* Skip configuration if it is the same as previously set */
453
456
if (priv -> irq_trigger [event_node -> channel ] == next_irq_trigger )
454
457
continue ;
@@ -462,9 +465,6 @@ static int quad8_events_configure(struct counter_device *counter)
462
465
priv -> irq_trigger [event_node -> channel ] << 3 ;
463
466
iowrite8 (QUAD8_CTR_IOR | ior_cfg ,
464
467
& priv -> reg -> channel [event_node -> channel ].control );
465
-
466
- /* Enable IRQ line */
467
- irq_enabled |= BIT (event_node -> channel );
468
468
}
469
469
470
470
iowrite8 (irq_enabled , & priv -> reg -> index_interrupt );
You can’t perform that action at this time.
0 commit comments