Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325197
b: refs/heads/master
c: aa1b2cb
h: refs/heads/master
i:
  325195: 6b1ec63
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 11, 2012
1 parent baa8c1f commit ca5b07e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22d5ab0201f2621ebe834f309cb94d712427e62c
refs/heads/master: aa1b2cb3c5930bb332d756bd566771dcc83f251b
23 changes: 9 additions & 14 deletions trunk/drivers/staging/comedi/drivers/icp_multi.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ static unsigned short pci_list_builded; /*>0 list of card is known */
struct boardtype {
const char *name; /* driver name */
int device_id;
char have_irq; /* 1=card support IRQ */
};

struct icp_multi_private {
Expand Down Expand Up @@ -767,20 +766,17 @@ static int icp_multi_attach(struct comedi_device *dev,

icp_multi_reset(dev);

if (this_board->have_irq) {
if (irq) {
if (request_irq(irq, interrupt_service_icp_multi,
IRQF_SHARED, "Inova Icp Multi", dev)) {
printk(KERN_WARNING
"unable to allocate IRQ %u, DISABLING IT",
irq);
irq = 0; /* Can't use IRQ */
} else
printk(KERN_WARNING ", irq=%u", irq);
if (irq) {
if (request_irq(irq, interrupt_service_icp_multi,
IRQF_SHARED, "Inova Icp Multi", dev)) {
printk(KERN_WARNING
"unable to allocate IRQ %u, DISABLING IT",
irq);
irq = 0; /* Can't use IRQ */
} else
printk(KERN_WARNING ", IRQ disabled");
printk(KERN_WARNING ", irq=%u", irq);
} else
irq = 0;
printk(KERN_WARNING ", IRQ disabled");

dev->irq = irq;

Expand Down Expand Up @@ -868,7 +864,6 @@ static const struct boardtype boardtypes[] = {
{
.name = "icp_multi",
.device_id = PCI_DEVICE_ID_ICP_MULTI,
.have_irq = 1,
},
};

Expand Down

0 comments on commit ca5b07e

Please sign in to comment.