return pci230_attach_common(dev, pci_dev);
}
-static int __devinit pci230_attach_pci(struct comedi_device *dev,
- struct pci_dev *pci_dev)
+static int __devinit pci230_auto_attach(struct comedi_device *dev,
+ unsigned long context_unused)
{
+ struct pci_dev *pci_dev = comedi_to_pci_dev(dev);
int rc;
dev_info(dev->class_dev, "amplc_pci230: attach pci %s\n",
.driver_name = "amplc_pci230",
.module = THIS_MODULE,
.attach = pci230_attach,
- .attach_pci = pci230_attach_pci,
+ .auto_attach = pci230_auto_attach,
.detach = pci230_detach,
.board_name = &pci230_boards[0].name,
.offset = sizeof(pci230_boards[0]),