|
Lines 3574-3580
Link Here
|
| 3574 |
} |
3574 |
} |
| 3575 |
|
3575 |
|
| 3576 |
#ifdef SUPPORT_GEN1 |
3576 |
#ifdef SUPPORT_GEN1 |
| 3577 |
DAHDI_IRQ_HANDLER(t4_interrupt) |
3577 |
static irqreturn_t t4_interrupt(int irq, void *dev_id) |
| 3578 |
{ |
3578 |
{ |
| 3579 |
struct t4 *wc = dev_id; |
3579 |
struct t4 *wc = dev_id; |
| 3580 |
unsigned long flags; |
3580 |
unsigned long flags; |
|
Lines 3778-3784
Link Here
|
| 3778 |
#endif |
3778 |
#endif |
| 3779 |
} |
3779 |
} |
| 3780 |
|
3780 |
|
| 3781 |
DAHDI_IRQ_HANDLER(t4_interrupt_gen2) |
3781 |
static irqreturn_t t4_interrupt_gen2(int irq, void *dev_id) |
| 3782 |
{ |
3782 |
{ |
| 3783 |
struct t4 *wc = dev_id; |
3783 |
struct t4 *wc = dev_id; |
| 3784 |
unsigned int status; |
3784 |
unsigned int status; |
|
Lines 4693-4699
Link Here
|
| 4693 |
t4_hardware_init_2(wc); |
4693 |
t4_hardware_init_2(wc); |
| 4694 |
|
4694 |
|
| 4695 |
#ifdef SUPPORT_GEN1 |
4695 |
#ifdef SUPPORT_GEN1 |
| 4696 |
if (request_irq(pdev->irq, (wc->flags & FLAG_2NDGEN) ? t4_interrupt_gen2 :t4_interrupt, DAHDI_IRQ_SHARED_DISABLED, "opvxd115", wc)) |
4696 |
if (request_irq(pdev->irq, (wc->flags & FLAG_2NDGEN) ? t4_interrupt_gen2 :t4_interrupt, IRQF_SHARED, "opvxd115", wc)) |
| 4697 |
#else |
4697 |
#else |
| 4698 |
if (!(wc->tspans[0]->spanflags & FLAG_2NDGEN)) { |
4698 |
if (!(wc->tspans[0]->spanflags & FLAG_2NDGEN)) { |
| 4699 |
dev_notice(&wc->dev->dev, "This driver does not " |
4699 |
dev_notice(&wc->dev->dev, "This driver does not " |
|
Lines 4701-4707
Link Here
|
| 4701 |
free_wc(wc); |
4701 |
free_wc(wc); |
| 4702 |
return -ENODEV; |
4702 |
return -ENODEV; |
| 4703 |
} |
4703 |
} |
| 4704 |
if (request_irq(pdev->irq, t4_interrupt_gen2, DAHDI_IRQ_SHARED_DISABLED, "opvxd115", wc)) |
4704 |
if (request_irq(pdev->irq, t4_interrupt_gen2, IRQF_SHARED, "opvxd115", wc)) |
| 4705 |
#endif |
4705 |
#endif |
| 4706 |
{ |
4706 |
{ |
| 4707 |
dev_notice(&wc->dev->dev, "opvxd115: Unable to request IRQ %d\n", |
4707 |
dev_notice(&wc->dev->dev, "opvxd115: Unable to request IRQ %d\n", |
|
Lines 4848-4854
Link Here
|
| 4848 |
static int __init t4_init(void) |
4848 |
static int __init t4_init(void) |
| 4849 |
{ |
4849 |
{ |
| 4850 |
int res; |
4850 |
int res; |
| 4851 |
res = dahdi_pci_module(&t4_driver); |
4851 |
res = pci_register_driver(&t4_driver); |
| 4852 |
if (res) |
4852 |
if (res) |
| 4853 |
return -ENODEV; |
4853 |
return -ENODEV; |
| 4854 |
/* initialize cards since we have all of them */ |
4854 |
/* initialize cards since we have all of them */ |