Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325528
b: refs/heads/master
c: 7c843aa
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 26, 2012
1 parent 57fefe8 commit eef79c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: f574af6d268240a68f99fac9f2f42ce38b26eae9
refs/heads/master: 7c843aa7731c774a78a31b6dab371024c4756d38
7 changes: 3 additions & 4 deletions trunk/drivers/staging/comedi/drivers/s626.c
Original file line number Diff line number Diff line change
Expand Up @@ -2453,11 +2453,12 @@ static int s626_attach_pci(struct comedi_device *dev, struct pci_dev *pcidev)
struct comedi_subdevice *s;

comedi_set_hw_dev(dev, &pcidev->dev);
dev->board_name = dev->driver->driver_name;

if (alloc_private(dev, sizeof(struct s626_private)) < 0)
return -ENOMEM;

result = comedi_pci_enable(pcidev, "s626");
result = comedi_pci_enable(pcidev, dev->board_name);
if (result < 0) {
printk(KERN_ERR "s626_attach: comedi_pci_enable fails\n");
return -ENODEV;
Expand Down Expand Up @@ -2510,8 +2511,6 @@ static int s626_attach_pci(struct comedi_device *dev, struct pci_dev *pcidev)

}

dev->board_name = dev->driver->driver_name;

ret = comedi_alloc_subdevices(dev, 6);
if (ret)
return ret;
Expand All @@ -2524,7 +2523,7 @@ static int s626_attach_pci(struct comedi_device *dev, struct pci_dev *pcidev)
printk(KERN_ERR " unknown irq (bad)\n");
} else {
ret = request_irq(dev->irq, s626_irq_handler, IRQF_SHARED,
"s626", dev);
dev->board_name, dev);

if (ret < 0) {
printk(KERN_ERR " irq not available\n");
Expand Down

0 comments on commit eef79c7

Please sign in to comment.