Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363404
b: refs/heads/master
c: 151df46
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Mar 11, 2013
1 parent ccadbfc commit 6fa8adc
Show file tree
Hide file tree
Showing 2 changed files with 20 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: b3322d422e65bcfd0a70444c9a0f240aaa8d0b07
refs/heads/master: 151df466b681181bc1b0543df79620d4e805e531
33 changes: 19 additions & 14 deletions trunk/drivers/staging/comedi/drivers/skel.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,28 +689,33 @@ static struct comedi_driver skel_driver = {

#ifdef CONFIG_COMEDI_PCI_DRIVERS

/* This is used by modprobe to translate PCI IDs to drivers. Should
* only be used for PCI and ISA-PnP devices */
/* Please add your PCI vendor ID to comedidev.h, and it will be forwarded
* upstream. */
#define PCI_VENDOR_ID_SKEL 0xdafe
static int skel_pci_probe(struct pci_dev *dev,
const struct pci_device_id *id)
{
return comedi_pci_auto_config(dev, &skel_driver, id->driver_data);
}

/*
* Please add your PCI vendor ID to comedidev.h, and it will
* be forwarded upstream.
*/
#define PCI_VENDOR_ID_SKEL 0xdafe

/*
* This is used by modprobe to translate PCI IDs to drivers.
* Should only be used for PCI and ISA-PnP devices
*/
static DEFINE_PCI_DEVICE_TABLE(skel_pci_table) = {
{ PCI_DEVICE(PCI_VENDOR_ID_SKEL, 0x0100) },
{ PCI_DEVICE(PCI_VENDOR_ID_SKEL, 0x0200) },
{ 0 }
};
MODULE_DEVICE_TABLE(pci, skel_pci_table);

static int skel_pci_probe(struct pci_dev *dev,
const struct pci_device_id *id)
{
return comedi_pci_auto_config(dev, &skel_driver, id->driver_data);
}

static struct pci_driver skel_pci_driver = {
.name = "dummy",
.id_table = skel_pci_table,
.probe = &skel_pci_probe,
.name = "dummy",
.id_table = skel_pci_table,
.probe = skel_pci_probe,
.remove = comedi_pci_auto_unconfig,
};
module_comedi_pci_driver(skel_driver, skel_pci_driver);
Expand Down

0 comments on commit 6fa8adc

Please sign in to comment.