We use PCI_ANY_ID to ask that our probe is called for every available
device.
Submitted by: jonsmirl
{
}
+static struct pci_device_id device_id_table[] = {
+ { PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
+};
+
static struct pci_driver driver = {
.name = DRIVER_NAME,
- .id_table = NULL,
+ .id_table = device_id_table,
.probe = probe,
.remove = remove,
};
{
}
+static struct pci_device_id device_id_table[] = {
+ { PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
+};
+
static struct pci_driver driver = {
.name = DRIVER_NAME,
- .id_table = NULL,
+ .id_table = device_id_table,
.probe = probe,
.remove = remove,
};