Skip to content

Commit 6fa60dd

Browse files
bigguinessgregkh
authored andcommitted
staging: comedi: adv_pci1710: remove 'has_irq' boardinfo
All the boards supported by this driver can use an interrupt. Remove the unnecessary boardinfo. Signed-off-by: H Hartley Sweeten <[email protected]> Reviewed-by: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 14b93bb commit 6fa60dd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/staging/comedi/drivers/adv_pci1710.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ struct boardtype {
134134
const struct comedi_lrange *rangelist_ai; /* rangelist for A/D */
135135
const char *rangecode_ai; /* range codes for programming */
136136
unsigned int is_pci1713:1;
137-
unsigned int has_irq:1;
138137
unsigned int has_large_fifo:1; /* 4K or 1K FIFO */
139138
unsigned int has_diff_ai:1;
140139
unsigned int has_ao:1;
@@ -148,7 +147,6 @@ static const struct boardtype boardtypes[] = {
148147
.n_aichan = 16,
149148
.rangelist_ai = &range_pci1710_3,
150149
.rangecode_ai = range_codes_pci1710_3,
151-
.has_irq = 1,
152150
.has_large_fifo = 1,
153151
.has_diff_ai = 1,
154152
.has_ao = 1,
@@ -160,7 +158,6 @@ static const struct boardtype boardtypes[] = {
160158
.n_aichan = 16,
161159
.rangelist_ai = &range_pci1710hg,
162160
.rangecode_ai = range_codes_pci1710hg,
163-
.has_irq = 1,
164161
.has_large_fifo = 1,
165162
.has_diff_ai = 1,
166163
.has_ao = 1,
@@ -172,7 +169,6 @@ static const struct boardtype boardtypes[] = {
172169
.n_aichan = 16,
173170
.rangelist_ai = &range_pci17x1,
174171
.rangecode_ai = range_codes_pci17x1,
175-
.has_irq = 1,
176172
.has_ao = 1,
177173
.has_di_do = 1,
178174
.has_counter = 1,
@@ -183,7 +179,6 @@ static const struct boardtype boardtypes[] = {
183179
.rangelist_ai = &range_pci1710_3,
184180
.rangecode_ai = range_codes_pci1710_3,
185181
.is_pci1713 = 1,
186-
.has_irq = 1,
187182
.has_large_fifo = 1,
188183
.has_diff_ai = 1,
189184
},
@@ -192,7 +187,6 @@ static const struct boardtype boardtypes[] = {
192187
.n_aichan = 16,
193188
.rangelist_ai = &range_pci17x1,
194189
.rangecode_ai = range_codes_pci17x1,
195-
.has_irq = 1,
196190
.has_di_do = 1,
197191
},
198192
};
@@ -806,7 +800,7 @@ static int pci1710_auto_attach(struct comedi_device *dev,
806800

807801
pci1710_reset(dev);
808802

809-
if (board->has_irq && pcidev->irq) {
803+
if (pcidev->irq) {
810804
ret = request_irq(pcidev->irq, interrupt_service_pci1710,
811805
IRQF_SHARED, dev->board_name, dev);
812806
if (ret == 0)

0 commit comments

Comments
 (0)