diff options
author | Eric Anholt <anholt@freebsd.org> | 2003-10-19 20:06:03 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2003-10-19 20:06:03 +0000 |
commit | 63ce8af5550950b19db432230910e7a2424fa16f (patch) | |
tree | 1ae3718edf435a0cad48e3140929f0e169bc12e3 | |
parent | 2950f9e6823d43abae151966ae808d1a63e6659c (diff) |
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
-rw-r--r-- | linux-core/drm_drv.c | 6 | ||||
-rw-r--r-- | linux/drm_drv.h | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c index d1bad56a..4ea81e8c 100644 --- a/linux-core/drm_drv.c +++ b/linux-core/drm_drv.c @@ -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, }; diff --git a/linux/drm_drv.h b/linux/drm_drv.h index d1bad56a..4ea81e8c 100644 --- a/linux/drm_drv.h +++ b/linux/drm_drv.h @@ -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, }; |