staging: comedi: adv_pci1710: remove 'has_irq' boardinfo
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 13 Nov 2015 18:11:04 +0000 (11:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Dec 2015 22:56:30 +0000 (14:56 -0800)
All the boards supported by this driver can use an interrupt. Remove
the unnecessary boardinfo.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adv_pci1710.c

index 45d7f42312ec3da8576e905e7a2f8fe3ebdecc7f..032d1d41a1398677a8aef9abb64aa543db553a3c 100644 (file)
@@ -134,7 +134,6 @@ struct boardtype {
        const struct comedi_lrange *rangelist_ai;       /*  rangelist for A/D */
        const char *rangecode_ai;       /*  range codes for programming */
        unsigned int is_pci1713:1;
-       unsigned int has_irq:1;
        unsigned int has_large_fifo:1;  /* 4K or 1K FIFO */
        unsigned int has_diff_ai:1;
        unsigned int has_ao:1;
@@ -148,7 +147,6 @@ static const struct boardtype boardtypes[] = {
                .n_aichan       = 16,
                .rangelist_ai   = &range_pci1710_3,
                .rangecode_ai   = range_codes_pci1710_3,
-               .has_irq        = 1,
                .has_large_fifo = 1,
                .has_diff_ai    = 1,
                .has_ao         = 1,
@@ -160,7 +158,6 @@ static const struct boardtype boardtypes[] = {
                .n_aichan       = 16,
                .rangelist_ai   = &range_pci1710hg,
                .rangecode_ai   = range_codes_pci1710hg,
-               .has_irq        = 1,
                .has_large_fifo = 1,
                .has_diff_ai    = 1,
                .has_ao         = 1,
@@ -172,7 +169,6 @@ static const struct boardtype boardtypes[] = {
                .n_aichan       = 16,
                .rangelist_ai   = &range_pci17x1,
                .rangecode_ai   = range_codes_pci17x1,
-               .has_irq        = 1,
                .has_ao         = 1,
                .has_di_do      = 1,
                .has_counter    = 1,
@@ -183,7 +179,6 @@ static const struct boardtype boardtypes[] = {
                .rangelist_ai   = &range_pci1710_3,
                .rangecode_ai   = range_codes_pci1710_3,
                .is_pci1713     = 1,
-               .has_irq        = 1,
                .has_large_fifo = 1,
                .has_diff_ai    = 1,
        },
@@ -192,7 +187,6 @@ static const struct boardtype boardtypes[] = {
                .n_aichan       = 16,
                .rangelist_ai   = &range_pci17x1,
                .rangecode_ai   = range_codes_pci17x1,
-               .has_irq        = 1,
                .has_di_do      = 1,
        },
 };
@@ -806,7 +800,7 @@ static int pci1710_auto_attach(struct comedi_device *dev,
 
        pci1710_reset(dev);
 
-       if (board->has_irq && pcidev->irq) {
+       if (pcidev->irq) {
                ret = request_irq(pcidev->irq, interrupt_service_pci1710,
                                  IRQF_SHARED, dev->board_name, dev);
                if (ret == 0)