Fix probing on 2.5+ kernels, which require that drivers have .id_table set.

We use PCI_ANY_ID to ask that our probe is called for every available
    device.
Submitted by: jonsmirl
main
Eric Anholt 2003-10-19 20:06:03 +00:00
parent 2950f9e682
commit 63ce8af555
2 changed files with 10 additions and 2 deletions

View File

@ -619,9 +619,13 @@ static void __exit remove(struct pci_dev *dev)
{
}
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,
};

View File

@ -619,9 +619,13 @@ static void __exit remove(struct pci_dev *dev)
{
}
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,
};