summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-core/drm_drv.c6
-rw-r--r--linux/drm_drv.h6
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,
};