Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
MODULE_DEVICE_TABLE(pci, adl_pci8164_pci_table);
MODULE_DEVICE_TABLE(pci, adl_pci8164_pci_table);
+struct adl_pci8164_private {
int data;
struct pci_dev *pci_dev;
int data;
struct pci_dev *pci_dev;
-#define devpriv ((adl_pci8164_private *)dev->private)
+#define devpriv ((struct adl_pci8164_private *)dev->private)
static int adl_pci8164_attach(struct comedi_device * dev, struct comedi_devconfig * it);
static int adl_pci8164_detach(struct comedi_device * dev);
static int adl_pci8164_attach(struct comedi_device * dev, struct comedi_devconfig * it);
static int adl_pci8164_detach(struct comedi_device * dev);
bus = it->options[0];
slot = it->options[1];
bus = it->options[0];
slot = it->options[1];
- if (alloc_private(dev, sizeof(adl_pci8164_private)) < 0)
+ if (alloc_private(dev, sizeof(struct adl_pci8164_private)) < 0)
return -ENOMEM;
if (alloc_subdevices(dev, 4) < 0)
return -ENOMEM;
if (alloc_subdevices(dev, 4) < 0)