vme: Fix module autoload
authorAlessio Igor Bogani <alessio.bogani@elettra.eu>
Tue, 14 Jun 2016 14:36:55 +0000 (16:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2016 11:20:16 +0000 (13:20 +0200)
These drivers have a PCI device ID table but the PCI module
alias information is not created so module autoloading won't work.

Signed-off-by: Alessio Igor Bogani <alessio.bogani@elettra.eu>
Acked-by: Martyn Welch <martyn@welchs.me.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vme/bridges/vme_ca91cx42.c
drivers/vme/bridges/vme_tsi148.c

index da29dbe6c9c8f1c1e2f1ead5f1b6396d03c96a35..6b5ee896af6318e9b50c384fcf3e062d24d89c47 100644 (file)
@@ -47,6 +47,8 @@ static const struct pci_device_id ca91cx42_ids[] = {
        { },
 };
 
+MODULE_DEVICE_TABLE(pci, ca91cx42_ids);
+
 static struct pci_driver ca91cx42_driver = {
        .name = driver_name,
        .id_table = ca91cx42_ids,
index 2d3ba1a1d42d337d4e76347a1cb7fcfd9fee093b..fc1b634b969a999c780e11caea23b3c84b08b8d0 100644 (file)
@@ -50,6 +50,8 @@ static const struct pci_device_id tsi148_ids[] = {
        { },
 };
 
+MODULE_DEVICE_TABLE(pci, tsi148_ids);
+
 static struct pci_driver tsi148_driver = {
        .name = driver_name,
        .id_table = tsi148_ids,