Commit 9ba02bec authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Linus Torvalds

[PATCH] irq-flags: isdn: Use the new IRQF_ constants

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 272ee69c
...@@ -97,7 +97,7 @@ static int b1pci_probe(struct capicardparams *p, struct pci_dev *pdev) ...@@ -97,7 +97,7 @@ static int b1pci_probe(struct capicardparams *p, struct pci_dev *pdev)
b1_reset(card->port); b1_reset(card->port);
b1_getrevision(card); b1_getrevision(card);
retval = request_irq(card->irq, b1_interrupt, SA_SHIRQ, card->name, card); retval = request_irq(card->irq, b1_interrupt, IRQF_SHARED, card->name, card);
if (retval) { if (retval) {
printk(KERN_ERR "b1pci: unable to get IRQ %d.\n", card->irq); printk(KERN_ERR "b1pci: unable to get IRQ %d.\n", card->irq);
retval = -EBUSY; retval = -EBUSY;
...@@ -234,7 +234,7 @@ static int b1pciv4_probe(struct capicardparams *p, struct pci_dev *pdev) ...@@ -234,7 +234,7 @@ static int b1pciv4_probe(struct capicardparams *p, struct pci_dev *pdev)
b1dma_reset(card); b1dma_reset(card);
b1_getrevision(card); b1_getrevision(card);
retval = request_irq(card->irq, b1dma_interrupt, SA_SHIRQ, card->name, card); retval = request_irq(card->irq, b1dma_interrupt, IRQF_SHARED, card->name, card);
if (retval) { if (retval) {
printk(KERN_ERR "b1pci: unable to get IRQ %d.\n", printk(KERN_ERR "b1pci: unable to get IRQ %d.\n",
card->irq); card->irq);
......
...@@ -82,7 +82,7 @@ static int b1pcmcia_add_card(unsigned int port, unsigned irq, ...@@ -82,7 +82,7 @@ static int b1pcmcia_add_card(unsigned int port, unsigned irq,
card->irq = irq; card->irq = irq;
card->cardtype = cardtype; card->cardtype = cardtype;
retval = request_irq(card->irq, b1_interrupt, SA_SHIRQ, card->name, card); retval = request_irq(card->irq, b1_interrupt, IRQF_SHARED, card->name, card);
if (retval) { if (retval) {
printk(KERN_ERR "b1pcmcia: unable to get IRQ %d.\n", printk(KERN_ERR "b1pcmcia: unable to get IRQ %d.\n",
card->irq); card->irq);
......
...@@ -1172,7 +1172,7 @@ static int c4_add_card(struct capicardparams *p, struct pci_dev *dev, ...@@ -1172,7 +1172,7 @@ static int c4_add_card(struct capicardparams *p, struct pci_dev *dev,
} }
c4_reset(card); c4_reset(card);
retval = request_irq(card->irq, c4_interrupt, SA_SHIRQ, card->name, card); retval = request_irq(card->irq, c4_interrupt, IRQF_SHARED, card->name, card);
if (retval) { if (retval) {
printk(KERN_ERR "c4: unable to get IRQ %d.\n",card->irq); printk(KERN_ERR "c4: unable to get IRQ %d.\n",card->irq);
retval = -EBUSY; retval = -EBUSY;
......
...@@ -103,7 +103,7 @@ static int t1pci_add_card(struct capicardparams *p, struct pci_dev *pdev) ...@@ -103,7 +103,7 @@ static int t1pci_add_card(struct capicardparams *p, struct pci_dev *pdev)
} }
b1dma_reset(card); b1dma_reset(card);
retval = request_irq(card->irq, b1dma_interrupt, SA_SHIRQ, card->name, card); retval = request_irq(card->irq, b1dma_interrupt, IRQF_SHARED, card->name, card);
if (retval) { if (retval) {
printk(KERN_ERR "t1pci: unable to get IRQ %d.\n", card->irq); printk(KERN_ERR "t1pci: unable to get IRQ %d.\n", card->irq);
retval = -EBUSY; retval = -EBUSY;
......
...@@ -486,7 +486,7 @@ void __inline__ outpp(void __iomem *addr, word p) ...@@ -486,7 +486,7 @@ void __inline__ outpp(void __iomem *addr, word p)
int diva_os_register_irq(void *context, byte irq, const char *name) int diva_os_register_irq(void *context, byte irq, const char *name)
{ {
int result = request_irq(irq, diva_os_irq_wrapper, int result = request_irq(irq, diva_os_irq_wrapper,
SA_INTERRUPT | SA_SHIRQ, name, context); IRQF_DISABLED | IRQF_SHARED, name, context);
return (result); return (result);
} }
......
...@@ -255,7 +255,7 @@ setup_avm_a1_pcmcia(struct IsdnCard *card) ...@@ -255,7 +255,7 @@ setup_avm_a1_pcmcia(struct IsdnCard *card)
cs->BC_Write_Reg = &WriteHSCX; cs->BC_Write_Reg = &WriteHSCX;
cs->BC_Send_Data = &hscx_fill_fifo; cs->BC_Send_Data = &hscx_fill_fifo;
cs->cardmsg = &AVM_card_msg; cs->cardmsg = &AVM_card_msg;
cs->irq_flags = SA_SHIRQ; cs->irq_flags = IRQF_SHARED;
cs->irq_func = &avm_a1p_interrupt; cs->irq_func = &avm_a1p_interrupt;
ISACVersion(cs, "AVM A1 PCMCIA:"); ISACVersion(cs, "AVM A1 PCMCIA:");
......
...@@ -808,7 +808,7 @@ setup_avm_pcipnp(struct IsdnCard *card) ...@@ -808,7 +808,7 @@ setup_avm_pcipnp(struct IsdnCard *card)
printk(KERN_WARNING "FritzPCI: No PCI card found\n"); printk(KERN_WARNING "FritzPCI: No PCI card found\n");
return(0); return(0);
} }
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= IRQF_SHARED;
#else #else
printk(KERN_WARNING "FritzPCI: NO_PCI_BIOS\n"); printk(KERN_WARNING "FritzPCI: NO_PCI_BIOS\n");
return (0); return (0);
......
...@@ -335,7 +335,7 @@ setup_bkm_a4t(struct IsdnCard *card) ...@@ -335,7 +335,7 @@ setup_bkm_a4t(struct IsdnCard *card)
cs->BC_Send_Data = &jade_fill_fifo; cs->BC_Send_Data = &jade_fill_fifo;
cs->cardmsg = &BKM_card_msg; cs->cardmsg = &BKM_card_msg;
cs->irq_func = &bkm_interrupt; cs->irq_func = &bkm_interrupt;
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= IRQF_SHARED;
ISACVersion(cs, "Telekom A4T:"); ISACVersion(cs, "Telekom A4T:");
/* Jade version */ /* Jade version */
JadeVersion(cs, "Telekom A4T:"); JadeVersion(cs, "Telekom A4T:");
......
...@@ -374,7 +374,7 @@ setup_sct_quadro(struct IsdnCard *card) ...@@ -374,7 +374,7 @@ setup_sct_quadro(struct IsdnCard *card)
pci_ioaddr5 &= PCI_BASE_ADDRESS_IO_MASK; pci_ioaddr5 &= PCI_BASE_ADDRESS_IO_MASK;
/* Take over */ /* Take over */
cs->irq = pci_irq; cs->irq = pci_irq;
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= IRQF_SHARED;
/* pci_ioaddr1 is unique to all subdevices */ /* pci_ioaddr1 is unique to all subdevices */
/* pci_ioaddr2 is for the fourth subdevice only */ /* pci_ioaddr2 is for the fourth subdevice only */
/* pci_ioaddr3 is for the third subdevice only */ /* pci_ioaddr3 is for the third subdevice only */
......
...@@ -1076,7 +1076,7 @@ setup_diva(struct IsdnCard *card) ...@@ -1076,7 +1076,7 @@ setup_diva(struct IsdnCard *card)
printk(KERN_WARNING "Diva: No IO-Adr for PCI card found\n"); printk(KERN_WARNING "Diva: No IO-Adr for PCI card found\n");
return(0); return(0);
} }
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= IRQF_SHARED;
#else #else
printk(KERN_WARNING "Diva: cfgreg 0 and NO_PCI_BIOS\n"); printk(KERN_WARNING "Diva: cfgreg 0 and NO_PCI_BIOS\n");
printk(KERN_WARNING "Diva: unable to config DIVA PCI\n"); printk(KERN_WARNING "Diva: unable to config DIVA PCI\n");
......
...@@ -85,8 +85,8 @@ static const char *ITACVer[] = ...@@ -85,8 +85,8 @@ static const char *ITACVer[] =
*** ***/ *** ***/
/* Config-Register (Read) */ /* Config-Register (Read) */
#define ELSA_TIMER_RUN 0x02 /* Bit 1 des Config-Reg */ #define ELIRQF_TIMER_RUN 0x02 /* Bit 1 des Config-Reg */
#define ELSA_TIMER_RUN_PCC8 0x01 /* Bit 0 des Config-Reg bei PCC */ #define ELIRQF_TIMER_RUN_PCC8 0x01 /* Bit 0 des Config-Reg bei PCC */
#define ELSA_IRQ_IDX 0x38 /* Bit 3,4,5 des Config-Reg */ #define ELSA_IRQ_IDX 0x38 /* Bit 3,4,5 des Config-Reg */
#define ELSA_IRQ_IDX_PCC8 0x30 /* Bit 4,5 des Config-Reg */ #define ELSA_IRQ_IDX_PCC8 0x30 /* Bit 4,5 des Config-Reg */
#define ELSA_IRQ_IDX_PC 0x0c /* Bit 2,3 des Config-Reg */ #define ELSA_IRQ_IDX_PC 0x0c /* Bit 2,3 des Config-Reg */
...@@ -102,7 +102,7 @@ static const char *ITACVer[] = ...@@ -102,7 +102,7 @@ static const char *ITACVer[] =
#define ELSA_S0_POWER_BAD 0x08 /* Bit 3 S0-Bus Spannung fehlt */ #define ELSA_S0_POWER_BAD 0x08 /* Bit 3 S0-Bus Spannung fehlt */
/* Status Flags */ /* Status Flags */
#define ELSA_TIMER_AKTIV 1 #define ELIRQF_TIMER_AKTIV 1
#define ELSA_BAD_PWR 2 #define ELSA_BAD_PWR 2
#define ELSA_ASSIGN 4 #define ELSA_ASSIGN 4
...@@ -259,10 +259,10 @@ TimerRun(struct IsdnCardState *cs) ...@@ -259,10 +259,10 @@ TimerRun(struct IsdnCardState *cs)
v = bytein(cs->hw.elsa.cfg); v = bytein(cs->hw.elsa.cfg);
if ((cs->subtyp == ELSA_QS1000) || (cs->subtyp == ELSA_QS3000)) if ((cs->subtyp == ELSA_QS1000) || (cs->subtyp == ELSA_QS3000))
return (0 == (v & ELSA_TIMER_RUN)); return (0 == (v & ELIRQF_TIMER_RUN));
else if (cs->subtyp == ELSA_PCC8) else if (cs->subtyp == ELSA_PCC8)
return (v & ELSA_TIMER_RUN_PCC8); return (v & ELIRQF_TIMER_RUN_PCC8);
return (v & ELSA_TIMER_RUN); return (v & ELIRQF_TIMER_RUN);
} }
/* /*
* fast interrupt HSCX stuff goes here * fast interrupt HSCX stuff goes here
...@@ -334,7 +334,7 @@ elsa_interrupt(int intno, void *dev_id, struct pt_regs *regs) ...@@ -334,7 +334,7 @@ elsa_interrupt(int intno, void *dev_id, struct pt_regs *regs)
writereg(cs->hw.elsa.ale, cs->hw.elsa.hscx, HSCX_MASK, 0xFF); writereg(cs->hw.elsa.ale, cs->hw.elsa.hscx, HSCX_MASK, 0xFF);
writereg(cs->hw.elsa.ale, cs->hw.elsa.hscx, HSCX_MASK + 0x40, 0xFF); writereg(cs->hw.elsa.ale, cs->hw.elsa.hscx, HSCX_MASK + 0x40, 0xFF);
writereg(cs->hw.elsa.ale, cs->hw.elsa.isac, ISAC_MASK, 0xFF); writereg(cs->hw.elsa.ale, cs->hw.elsa.isac, ISAC_MASK, 0xFF);
if (cs->hw.elsa.status & ELSA_TIMER_AKTIV) { if (cs->hw.elsa.status & ELIRQF_TIMER_AKTIV) {
if (!TimerRun(cs)) { if (!TimerRun(cs)) {
/* Timer Restart */ /* Timer Restart */
byteout(cs->hw.elsa.timer, 0); byteout(cs->hw.elsa.timer, 0);
...@@ -685,7 +685,7 @@ Elsa_card_msg(struct IsdnCardState *cs, int mt, void *arg) ...@@ -685,7 +685,7 @@ Elsa_card_msg(struct IsdnCardState *cs, int mt, void *arg)
spin_lock_irqsave(&cs->lock, flags); spin_lock_irqsave(&cs->lock, flags);
cs->hw.elsa.counter = 0; cs->hw.elsa.counter = 0;
cs->hw.elsa.ctrl_reg |= ELSA_ENA_TIMER_INT; cs->hw.elsa.ctrl_reg |= ELSA_ENA_TIMER_INT;
cs->hw.elsa.status |= ELSA_TIMER_AKTIV; cs->hw.elsa.status |= ELIRQF_TIMER_AKTIV;
byteout(cs->hw.elsa.ctrl, cs->hw.elsa.ctrl_reg); byteout(cs->hw.elsa.ctrl, cs->hw.elsa.ctrl_reg);
byteout(cs->hw.elsa.timer, 0); byteout(cs->hw.elsa.timer, 0);
spin_unlock_irqrestore(&cs->lock, flags); spin_unlock_irqrestore(&cs->lock, flags);
...@@ -693,7 +693,7 @@ Elsa_card_msg(struct IsdnCardState *cs, int mt, void *arg) ...@@ -693,7 +693,7 @@ Elsa_card_msg(struct IsdnCardState *cs, int mt, void *arg)
spin_lock_irqsave(&cs->lock, flags); spin_lock_irqsave(&cs->lock, flags);
cs->hw.elsa.ctrl_reg &= ~ELSA_ENA_TIMER_INT; cs->hw.elsa.ctrl_reg &= ~ELSA_ENA_TIMER_INT;
byteout(cs->hw.elsa.ctrl, cs->hw.elsa.ctrl_reg); byteout(cs->hw.elsa.ctrl, cs->hw.elsa.ctrl_reg);
cs->hw.elsa.status &= ~ELSA_TIMER_AKTIV; cs->hw.elsa.status &= ~ELIRQF_TIMER_AKTIV;
spin_unlock_irqrestore(&cs->lock, flags); spin_unlock_irqrestore(&cs->lock, flags);
printk(KERN_INFO "Elsa: %d timer tics in 110 msek\n", printk(KERN_INFO "Elsa: %d timer tics in 110 msek\n",
cs->hw.elsa.counter); cs->hw.elsa.counter);
...@@ -1012,7 +1012,7 @@ setup_elsa(struct IsdnCard *card) ...@@ -1012,7 +1012,7 @@ setup_elsa(struct IsdnCard *card)
cs->hw.elsa.timer = 0; cs->hw.elsa.timer = 0;
cs->hw.elsa.trig = 0; cs->hw.elsa.trig = 0;
cs->hw.elsa.ctrl = 0; cs->hw.elsa.ctrl = 0;
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= IRQF_SHARED;
printk(KERN_INFO printk(KERN_INFO
"Elsa: %s defined at %#lx IRQ %d\n", "Elsa: %s defined at %#lx IRQ %d\n",
Elsa_Types[cs->subtyp], Elsa_Types[cs->subtyp],
...@@ -1061,7 +1061,7 @@ setup_elsa(struct IsdnCard *card) ...@@ -1061,7 +1061,7 @@ setup_elsa(struct IsdnCard *card)
test_and_set_bit(HW_IPAC, &cs->HW_Flags); test_and_set_bit(HW_IPAC, &cs->HW_Flags);
cs->hw.elsa.timer = 0; cs->hw.elsa.timer = 0;
cs->hw.elsa.trig = 0; cs->hw.elsa.trig = 0;
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= IRQF_SHARED;
printk(KERN_INFO printk(KERN_INFO
"Elsa: %s defined at %#lx/0x%x IRQ %d\n", "Elsa: %s defined at %#lx/0x%x IRQ %d\n",
Elsa_Types[cs->subtyp], Elsa_Types[cs->subtyp],
......
...@@ -405,7 +405,7 @@ setup_enternow_pci(struct IsdnCard *card) ...@@ -405,7 +405,7 @@ setup_enternow_pci(struct IsdnCard *card)
cs->BC_Send_Data = &netjet_fill_dma; cs->BC_Send_Data = &netjet_fill_dma;
cs->cardmsg = &enpci_card_msg; cs->cardmsg = &enpci_card_msg;
cs->irq_func = &enpci_interrupt; cs->irq_func = &enpci_interrupt;
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= IRQF_SHARED;
return (1); return (1);
} }
...@@ -592,7 +592,7 @@ setup_gazelpci(struct IsdnCardState *cs) ...@@ -592,7 +592,7 @@ setup_gazelpci(struct IsdnCardState *cs)
cs->hw.gazel.hscxfifo[0] = cs->hw.gazel.hscx[0]; cs->hw.gazel.hscxfifo[0] = cs->hw.gazel.hscx[0];
cs->hw.gazel.hscxfifo[1] = cs->hw.gazel.hscx[1]; cs->hw.gazel.hscxfifo[1] = cs->hw.gazel.hscx[1];
cs->irq = pci_irq; cs->irq = pci_irq;
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= IRQF_SHARED;
switch (seekcard) { switch (seekcard) {
case PCI_DEVICE_ID_PLX_R685: case PCI_DEVICE_ID_PLX_R685:
......
...@@ -1552,7 +1552,7 @@ setup_instance(hfc4s8s_hw * hw) ...@@ -1552,7 +1552,7 @@ setup_instance(hfc4s8s_hw * hw)
INIT_WORK(&hw->tqueue, (void *) (void *) hfc4s8s_bh, hw); INIT_WORK(&hw->tqueue, (void *) (void *) hfc4s8s_bh, hw);
if (request_irq if (request_irq
(hw->irq, hfc4s8s_interrupt, SA_SHIRQ, hw->card_name, hw)) { (hw->irq, hfc4s8s_interrupt, IRQF_SHARED, hw->card_name, hw)) {
printk(KERN_INFO printk(KERN_INFO
"HFC-4S/8S: unable to alloc irq %d, card ignored\n", "HFC-4S/8S: unable to alloc irq %d, card ignored\n",
hw->irq); hw->irq);
......
...@@ -1732,7 +1732,7 @@ setup_hfcpci(struct IsdnCard *card) ...@@ -1732,7 +1732,7 @@ setup_hfcpci(struct IsdnCard *card)
cs->BC_Read_Reg = NULL; cs->BC_Read_Reg = NULL;
cs->BC_Write_Reg = NULL; cs->BC_Write_Reg = NULL;
cs->irq_func = &hfcpci_interrupt; cs->irq_func = &hfcpci_interrupt;
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= IRQF_SHARED;
cs->hw.hfcpci.timer.function = (void *) hfcpci_Timer; cs->hw.hfcpci.timer.function = (void *) hfcpci_Timer;
cs->hw.hfcpci.timer.data = (long) cs; cs->hw.hfcpci.timer.data = (long) cs;
init_timer(&cs->hw.hfcpci.timer); init_timer(&cs->hw.hfcpci.timer);
......
...@@ -725,11 +725,11 @@ static int __devinit fcpcipnp_setup(struct fritz_adapter *adapter) ...@@ -725,11 +725,11 @@ static int __devinit fcpcipnp_setup(struct fritz_adapter *adapter)
switch (adapter->type) { switch (adapter->type) {
case AVM_FRITZ_PCIV2: case AVM_FRITZ_PCIV2:
retval = request_irq(adapter->irq, fcpci2_irq, SA_SHIRQ, retval = request_irq(adapter->irq, fcpci2_irq, IRQF_SHARED,
"fcpcipnp", adapter); "fcpcipnp", adapter);
break; break;
case AVM_FRITZ_PCI: case AVM_FRITZ_PCI:
retval = request_irq(adapter->irq, fcpci_irq, SA_SHIRQ, retval = request_irq(adapter->irq, fcpci_irq, IRQF_SHARED,
"fcpcipnp", adapter); "fcpcipnp", adapter);
break; break;
case AVM_FRITZ_PNP: case AVM_FRITZ_PNP:
......
...@@ -336,7 +336,7 @@ setup_niccy(struct IsdnCard *card) ...@@ -336,7 +336,7 @@ setup_niccy(struct IsdnCard *card)
printk(KERN_WARNING "Niccy: No PCI card found\n"); printk(KERN_WARNING "Niccy: No PCI card found\n");
return(0); return(0);
} }
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= IRQF_SHARED;
cs->hw.niccy.isac = pci_ioaddr + ISAC_PCI_DATA; cs->hw.niccy.isac = pci_ioaddr + ISAC_PCI_DATA;
cs->hw.niccy.isac_ale = pci_ioaddr + ISAC_PCI_ADDR; cs->hw.niccy.isac_ale = pci_ioaddr + ISAC_PCI_ADDR;
cs->hw.niccy.hscx = pci_ioaddr + HSCX_PCI_DATA; cs->hw.niccy.hscx = pci_ioaddr + HSCX_PCI_DATA;
......
...@@ -271,7 +271,7 @@ setup_netjet_s(struct IsdnCard *card) ...@@ -271,7 +271,7 @@ setup_netjet_s(struct IsdnCard *card)
setup_isac(cs); setup_isac(cs);
cs->cardmsg = &NETjet_S_card_msg; cs->cardmsg = &NETjet_S_card_msg;
cs->irq_func = &netjet_s_interrupt; cs->irq_func = &netjet_s_interrupt;
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= IRQF_SHARED;
ISACVersion(cs, "NETjet-S:"); ISACVersion(cs, "NETjet-S:");
return (1); return (1);
} }
...@@ -237,7 +237,7 @@ setup_netjet_u(struct IsdnCard *card) ...@@ -237,7 +237,7 @@ setup_netjet_u(struct IsdnCard *card)
cs->BC_Send_Data = &netjet_fill_dma; cs->BC_Send_Data = &netjet_fill_dma;
cs->cardmsg = &NETjet_U_card_msg; cs->cardmsg = &NETjet_U_card_msg;
cs->irq_func = &netjet_u_interrupt; cs->irq_func = &netjet_u_interrupt;
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= IRQF_SHARED;
ICCVersion(cs, "NETspider-U:"); ICCVersion(cs, "NETspider-U:");
return (1); return (1);
} }
...@@ -632,7 +632,7 @@ setup_sedlbauer(struct IsdnCard *card) ...@@ -632,7 +632,7 @@ setup_sedlbauer(struct IsdnCard *card)
printk(KERN_WARNING "Sedlbauer: No PCI card found\n"); printk(KERN_WARNING "Sedlbauer: No PCI card found\n");
return(0); return(0);
} }
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= IRQF_SHARED;
cs->hw.sedl.bus = SEDL_BUS_PCI; cs->hw.sedl.bus = SEDL_BUS_PCI;
sub_vendor_id = dev_sedl->subsystem_vendor; sub_vendor_id = dev_sedl->subsystem_vendor;
sub_id = dev_sedl->subsystem_device; sub_id = dev_sedl->subsystem_device;
...@@ -809,7 +809,7 @@ ready: ...@@ -809,7 +809,7 @@ ready:
cs->hw.sedl.hscx = cs->hw.sedl.cfg_reg + SEDL_HSCX_PCMCIA_HSCX; cs->hw.sedl.hscx = cs->hw.sedl.cfg_reg + SEDL_HSCX_PCMCIA_HSCX;
cs->hw.sedl.reset_on = cs->hw.sedl.cfg_reg + SEDL_HSCX_PCMCIA_RESET; cs->hw.sedl.reset_on = cs->hw.sedl.cfg_reg + SEDL_HSCX_PCMCIA_RESET;
cs->hw.sedl.reset_off = cs->hw.sedl.cfg_reg + SEDL_HSCX_PCMCIA_RESET; cs->hw.sedl.reset_off = cs->hw.sedl.cfg_reg + SEDL_HSCX_PCMCIA_RESET;
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= IRQF_SHARED;
} else { } else {
cs->hw.sedl.adr = cs->hw.sedl.cfg_reg + SEDL_HSCX_ISA_ADR; cs->hw.sedl.adr = cs->hw.sedl.cfg_reg + SEDL_HSCX_ISA_ADR;
cs->hw.sedl.isac = cs->hw.sedl.cfg_reg + SEDL_HSCX_ISA_ISAC; cs->hw.sedl.isac = cs->hw.sedl.cfg_reg + SEDL_HSCX_ISA_ISAC;
......
...@@ -369,7 +369,7 @@ setup_teles3(struct IsdnCard *card) ...@@ -369,7 +369,7 @@ setup_teles3(struct IsdnCard *card)
cs->hw.teles3.hscx[1] + 96); cs->hw.teles3.hscx[1] + 96);
return (0); return (0);
} }
cs->irq_flags |= SA_SHIRQ; /* cardbus can share */ cs->irq_flags |= IRQF_SHARED; /* cardbus can share */
} else { } else {
if (cs->hw.teles3.cfg_reg) { if (cs->hw.teles3.cfg_reg) {
if (cs->typ == ISDN_CTYPE_COMPAQ_ISA) { if (cs->typ == ISDN_CTYPE_COMPAQ_ISA) {
......
...@@ -347,7 +347,7 @@ setup_telespci(struct IsdnCard *card) ...@@ -347,7 +347,7 @@ setup_telespci(struct IsdnCard *card)
cs->BC_Send_Data = &hscx_fill_fifo; cs->BC_Send_Data = &hscx_fill_fifo;
cs->cardmsg = &TelesPCI_card_msg; cs->cardmsg = &TelesPCI_card_msg;
cs->irq_func = &telespci_interrupt; cs->irq_func = &telespci_interrupt;
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= IRQF_SHARED;
ISACVersion(cs, "TelesPCI:"); ISACVersion(cs, "TelesPCI:");
if (HscxVersion(cs, "TelesPCI:")) { if (HscxVersion(cs, "TelesPCI:")) {
printk(KERN_WARNING printk(KERN_WARNING
......
...@@ -1080,7 +1080,7 @@ setup_w6692(struct IsdnCard *card) ...@@ -1080,7 +1080,7 @@ setup_w6692(struct IsdnCard *card)
cs->BC_Send_Data = &W6692B_fill_fifo; cs->BC_Send_Data = &W6692B_fill_fifo;
cs->cardmsg = &w6692_card_msg; cs->cardmsg = &w6692_card_msg;
cs->irq_func = &W6692_interrupt; cs->irq_func = &W6692_interrupt;
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= IRQF_SHARED;
W6692Version(cs, "W6692:"); W6692Version(cs, "W6692:");
printk(KERN_INFO "W6692 ISTA=0x%X\n", ReadW6692(cs, W_ISTA)); printk(KERN_INFO "W6692 ISTA=0x%X\n", ReadW6692(cs, W_ISTA));
printk(KERN_INFO "W6692 IMASK=0x%X\n", ReadW6692(cs, W_IMASK)); printk(KERN_INFO "W6692 IMASK=0x%X\n", ReadW6692(cs, W_IMASK));
......
...@@ -435,7 +435,7 @@ ergo_inithardware(hysdn_card * card) ...@@ -435,7 +435,7 @@ ergo_inithardware(hysdn_card * card)
} }
ergo_stopcard(card); /* disable interrupts */ ergo_stopcard(card); /* disable interrupts */
if (request_irq(card->irq, ergo_interrupt, SA_SHIRQ, "HYSDN", card)) { if (request_irq(card->irq, ergo_interrupt, IRQF_SHARED, "HYSDN", card)) {
ergo_releasehardware(card); /* return the acquired hardware */ ergo_releasehardware(card); /* return the acquired hardware */
return (-1); return (-1);
} }
......
...@@ -342,7 +342,7 @@ static int __init sc_init(void) ...@@ -342,7 +342,7 @@ static int __init sc_init(void)
*/ */
sc_adapter[cinst]->interrupt = irq[b]; sc_adapter[cinst]->interrupt = irq[b];
if (request_irq(sc_adapter[cinst]->interrupt, interrupt_handler, if (request_irq(sc_adapter[cinst]->interrupt, interrupt_handler,
SA_INTERRUPT, interface->id, NULL)) IRQF_DISABLED, interface->id, NULL))
{ {
kfree(sc_adapter[cinst]->channel); kfree(sc_adapter[cinst]->channel);
indicate_status(cinst, ISDN_STAT_UNLOAD, 0, NULL); /* Fix me */ indicate_status(cinst, ISDN_STAT_UNLOAD, 0, NULL); /* Fix me */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment