Skip to content

Commit d88ed62

Browse files
Michael Opdenackergregkh
authored andcommitted
various char drivers: remove deprecated IRQF_DISABLED
This patch proposes to remove the use of the IRQF_DISABLED flag It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker <michael.opdenacker@free-electrons.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 158f0bb commit d88ed62

4 files changed

Lines changed: 5 additions & 8 deletions

File tree

‎drivers/char/nwbutton.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ static int __init nwbutton_init(void)
220220
return -EBUSY;
221221
}
222222

223-
if (request_irq (IRQ_NETWINDER_BUTTON, button_handler, IRQF_DISABLED,
223+
if (request_irq (IRQ_NETWINDER_BUTTON, button_handler, 0,
224224
"nwbutton", NULL)) {
225225
printk (KERN_WARNING "nwbutton: IRQ %d is not free.\n",
226226
IRQ_NETWINDER_BUTTON);

‎drivers/char/rtc.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ static inline unsigned char rtc_is_updating(void)
227227

228228
#ifdef RTC_IRQ
229229
/*
230-
* A very tiny interrupt handler. It runs with IRQF_DISABLED set,
230+
* A very tiny interrupt handler. It runs with interrupts disabled,
231231
* but there is possibility of conflicting with the set_rtc_mmss()
232232
* call (the rtc irq and the timer irq can easily run at the same
233233
* time in two different CPUs). So we need to serialize
@@ -1040,8 +1040,7 @@ static int __init rtc_init(void)
10401040
rtc_int_handler_ptr = rtc_interrupt;
10411041
}
10421042

1043-
if (request_irq(RTC_IRQ, rtc_int_handler_ptr, IRQF_DISABLED,
1044-
"rtc", NULL)) {
1043+
if (request_irq(RTC_IRQ, rtc_int_handler_ptr, 0, "rtc", NULL)) {
10451044
/* Yeah right, seeing as irq 8 doesn't even hit the bus. */
10461045
rtc_has_irq = 0;
10471046
printk(KERN_ERR "rtc: IRQ %d is not free.\n", RTC_IRQ);

‎drivers/char/snsc.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ scdrv_open(struct inode *inode, struct file *file)
108108
/* hook this subchannel up to the system controller interrupt */
109109
mutex_lock(&scdrv_mutex);
110110
rv = request_irq(SGI_UART_VECTOR, scdrv_interrupt,
111-
IRQF_SHARED | IRQF_DISABLED,
112-
SYSCTL_BASENAME, sd);
111+
IRQF_SHARED, SYSCTL_BASENAME, sd);
113112
if (rv) {
114113
ia64_sn_irtr_close(sd->sd_nasid, sd->sd_subch);
115114
kfree(sd);

‎drivers/char/snsc_event.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,7 @@ scdrv_event_init(struct sysctl_data_s *scd)
292292

293293
/* hook event subchannel up to the system controller interrupt */
294294
rv = request_irq(SGI_UART_VECTOR, scdrv_event_interrupt,
295-
IRQF_SHARED | IRQF_DISABLED,
296-
"system controller events", event_sd);
295+
IRQF_SHARED, "system controller events", event_sd);
297296
if (rv) {
298297
printk(KERN_WARNING "%s: irq request failed (%d)\n",
299298
__func__, rv);

0 commit comments

Comments
 (0)