Skip to content

Commit 0f2ed4c

Browse files
KAGA-KOKOLinus Torvalds
authored andcommitted
[PATCH] irq-flags: drivers/char: Use the new IRQF_ constants
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Cc: "David S. Miller" <davem@davemloft.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 69ab391 commit 0f2ed4c

37 files changed

Lines changed: 77 additions & 77 deletions

‎drivers/char/amiserial.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2051,7 +2051,7 @@ static int __init rs_init(void)
20512051

20522052
/* set ISRs, and then disable the rx interrupts */
20532053
request_irq(IRQ_AMIGA_TBE, ser_tx_int, 0, "serial TX", state);
2054-
request_irq(IRQ_AMIGA_RBF, ser_rx_int, SA_INTERRUPT, "serial RX", state);
2054+
request_irq(IRQ_AMIGA_RBF, ser_rx_int, IRQF_DISABLED, "serial RX", state);
20552055

20562056
/* turn off Rx and Tx interrupts */
20572057
custom.intena = IF_RBF | IF_TBE;

‎drivers/char/applicom.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ static int __init applicom_init(void)
229229
continue;
230230
}
231231

232-
if (request_irq(dev->irq, &ac_interrupt, SA_SHIRQ, "Applicom PCI", &dummy)) {
232+
if (request_irq(dev->irq, &ac_interrupt, IRQF_SHARED, "Applicom PCI", &dummy)) {
233233
printk(KERN_INFO "Could not allocate IRQ %d for PCI Applicom device.\n", dev->irq);
234234
iounmap(RamIO);
235235
pci_disable_device(dev);
@@ -276,7 +276,7 @@ static int __init applicom_init(void)
276276
printk(KERN_NOTICE "Applicom ISA card found at mem 0x%lx, irq %d\n", mem + (LEN_RAM_IO*i), irq);
277277

278278
if (!numisa) {
279-
if (request_irq(irq, &ac_interrupt, SA_SHIRQ, "Applicom ISA", &dummy)) {
279+
if (request_irq(irq, &ac_interrupt, IRQF_SHARED, "Applicom ISA", &dummy)) {
280280
printk(KERN_WARNING "Could not allocate IRQ %d for ISA Applicom device.\n", irq);
281281
iounmap(RamIO);
282282
apbs[boardno - 1].RamIO = NULL;

‎drivers/char/cyclades.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4612,7 +4612,7 @@ cy_detect_isa(void)
46124612

46134613
/* allocate IRQ */
46144614
if(request_irq(cy_isa_irq, cyy_interrupt,
4615-
SA_INTERRUPT, "Cyclom-Y", &cy_card[j]))
4615+
IRQF_DISABLED, "Cyclom-Y", &cy_card[j]))
46164616
{
46174617
printk("Cyclom-Y/ISA found at 0x%lx ",
46184618
(unsigned long) cy_isa_address);
@@ -4785,7 +4785,7 @@ cy_detect_pci(void)
47854785

47864786
/* allocate IRQ */
47874787
if(request_irq(cy_pci_irq, cyy_interrupt,
4788-
SA_SHIRQ, "Cyclom-Y", &cy_card[j]))
4788+
IRQF_SHARED, "Cyclom-Y", &cy_card[j]))
47894789
{
47904790
printk("Cyclom-Y/PCI found at 0x%lx ",
47914791
(ulong) cy_pci_phys2);
@@ -4965,7 +4965,7 @@ cy_detect_pci(void)
49654965
/* allocate IRQ only if board has an IRQ */
49664966
if( (cy_pci_irq != 0) && (cy_pci_irq != 255) ) {
49674967
if(request_irq(cy_pci_irq, cyz_interrupt,
4968-
SA_SHIRQ, "Cyclades-Z", &cy_card[j]))
4968+
IRQF_SHARED, "Cyclades-Z", &cy_card[j]))
49694969
{
49704970
printk("Cyclom-8Zo/PCI found at 0x%lx ",
49714971
(ulong) cy_pci_phys2);
@@ -5059,7 +5059,7 @@ cy_detect_pci(void)
50595059
/* allocate IRQ only if board has an IRQ */
50605060
if( (cy_pci_irq != 0) && (cy_pci_irq != 255) ) {
50615061
if(request_irq(cy_pci_irq, cyz_interrupt,
5062-
SA_SHIRQ, "Cyclades-Z", &cy_card[j]))
5062+
IRQF_SHARED, "Cyclades-Z", &cy_card[j]))
50635063
{
50645064
printk("Cyclom-Ze/PCI found at 0x%lx ",
50655065
(ulong) cy_pci_phys2);

‎drivers/char/esp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ static int startup(struct esp_struct * info)
883883
* Allocate the IRQ
884884
*/
885885

886-
retval = request_irq(info->irq, rs_interrupt_single, SA_SHIRQ,
886+
retval = request_irq(info->irq, rs_interrupt_single, IRQF_SHARED,
887887
"esp serial", info);
888888

889889
if (retval) {

‎drivers/char/ftape/lowlevel/fdc-io.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ static int fdc_grab_irq_and_dma(void)
12681268
/* Get fast interrupt handler.
12691269
*/
12701270
if (request_irq(fdc.irq, ftape_interrupt,
1271-
SA_INTERRUPT, "ft", ftape_id)) {
1271+
IRQF_DISABLED, "ft", ftape_id)) {
12721272
TRACE_ABORT(-EIO, ft_t_bug,
12731273
"Unable to grab IRQ%d for ftape driver",
12741274
fdc.irq);

‎drivers/char/hpet.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ static int hpet_ioctl_ieon(struct hpet_dev *devp)
395395

396396
sprintf(devp->hd_name, "hpet%d", (int)(devp - hpetp->hp_dev));
397397
irq_flags = devp->hd_flags & HPET_SHARED_IRQ
398-
? SA_SHIRQ : SA_INTERRUPT;
398+
? IRQF_SHARED : IRQF_DISABLED;
399399
if (request_irq(irq, hpet_interrupt, irq_flags,
400400
devp->hd_name, (void *)devp)) {
401401
printk(KERN_ERR "hpet: IRQ %d is not free\n", irq);

‎drivers/char/hvc_console.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ static int hvc_open(struct tty_struct *tty, struct file * filp)
346346
spin_unlock_irqrestore(&hp->lock, flags);
347347
/* check error, fallback to non-irq */
348348
if (irq != NO_IRQ)
349-
rc = request_irq(irq, hvc_handle_interrupt, SA_INTERRUPT, "hvc_console", hp);
349+
rc = request_irq(irq, hvc_handle_interrupt, IRQF_DISABLED, "hvc_console", hp);
350350

351351
/*
352352
* If the request_irq() fails and we return an error. The tty layer

‎drivers/char/hvcs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ static int hvcs_enable_device(struct hvcs_struct *hvcsd, uint32_t unit_address,
899899
* the conn was registered and now.
900900
*/
901901
if (!(rc = request_irq(irq, &hvcs_handle_interrupt,
902-
SA_INTERRUPT, "ibmhvcs", hvcsd))) {
902+
IRQF_DISABLED, "ibmhvcs", hvcsd))) {
903903
/*
904904
* It is possible the vty-server was removed after the irq was
905905
* requested but before we have time to enable interrupts.

‎drivers/char/hvsi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ static int __init hvsi_init(void)
11681168
struct hvsi_struct *hp = &hvsi_ports[i];
11691169
int ret = 1;
11701170

1171-
ret = request_irq(hp->virq, hvsi_interrupt, SA_INTERRUPT, "hvsi", hp);
1171+
ret = request_irq(hp->virq, hvsi_interrupt, IRQF_DISABLED, "hvsi", hp);
11721172
if (ret)
11731173
printk(KERN_ERR "HVSI: couldn't reserve irq 0x%x (error %i)\n",
11741174
hp->virq, ret);

‎drivers/char/ip2/ip2main.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,8 @@ static struct tty_operations ip2_ops = {
491491
/* initialisation of the devices and driver structures, and registers itself */
492492
/* with the relevant kernel modules. */
493493
/******************************************************************************/
494-
/* SA_INTERRUPT- if set blocks all interrupts else only this line */
495-
/* SA_SHIRQ - for shared irq PCI or maybe EISA only */
494+
/* IRQF_DISABLED - if set blocks all interrupts else only this line */
495+
/* IRQF_SHARED - for shared irq PCI or maybe EISA only */
496496
/* SA_RANDOM - can be source for cert. random number generators */
497497
#define IP2_SA_FLAGS 0
498498

@@ -753,7 +753,7 @@ ip2_loadmain(int *iop, int *irqp, unsigned char *firmware, int firmsize)
753753
if (have_requested_irq(ip2config.irq[i]))
754754
continue;
755755
rc = request_irq( ip2config.irq[i], ip2_interrupt,
756-
IP2_SA_FLAGS | (ip2config.type[i] == PCI ? SA_SHIRQ : 0),
756+
IP2_SA_FLAGS | (ip2config.type[i] == PCI ? IRQF_SHARED : 0),
757757
pcName, (void *)&pcName);
758758
if (rc) {
759759
printk(KERN_ERR "IP2: an request_irq failed: error %d\n",rc);

0 commit comments

Comments
 (0)