Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337943
b: refs/heads/master
c: a692e97
h: refs/heads/master
i:
  337941: 5b8a15f
  337939: 9bd4aca
  337935: 9e2675b
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Nov 15, 2012
1 parent 4b2c429 commit 662db25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 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: 847d74a26010e9bae51299b7c1008c5ec9a349f4
refs/heads/master: a692e9743a7b2085afbca2f7e50a449c3e205cc0
18 changes: 1 addition & 17 deletions trunk/drivers/staging/comedi/drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -947,26 +947,10 @@ void comedi_pci_disable(struct pci_dev *pdev)
}
EXPORT_SYMBOL_GPL(comedi_pci_disable);

static int comedi_pci_attach_wrapper(struct comedi_device *dev,
unsigned long context)
{
return dev->driver->attach_pci(dev, (struct pci_dev *)context);
}

static int comedi_new_pci_auto_config(struct pci_dev *pcidev,
struct comedi_driver *driver)
{
return comedi_auto_config_helper(&pcidev->dev, driver,
comedi_pci_attach_wrapper,
(unsigned long)pcidev);
}

int comedi_pci_auto_config(struct pci_dev *pcidev, struct comedi_driver *driver)
{

if (driver->attach_pci)
return comedi_new_pci_auto_config(pcidev, driver);
else if (driver->auto_attach)
if (driver->auto_attach)
return comedi_auto_config(&pcidev->dev, driver, 0);
else
return -EINVAL;
Expand Down

0 comments on commit 662db25

Please sign in to comment.