]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ptp_pch: Load module automatically if ID matches
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 1 Oct 2021 16:20:33 +0000 (19:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Oct 2021 15:13:00 +0000 (16:13 +0100)
The driver can't be loaded automatically because it misses
module alias to be provided. Add corresponding MODULE_DEVICE_TABLE()
call to the driver.

Fixes: 863d08ece9bf ("supports eg20t ptp clock")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_pch.c

index a17e8cc642c5f2ca5b1c43ef4b142f2bbd566f2c..8070f3fd98f01d0de87f6dfc87ac87fde7d28446 100644 (file)
@@ -644,6 +644,7 @@ static const struct pci_device_id pch_ieee1588_pcidev_id[] = {
         },
        {0}
 };
+MODULE_DEVICE_TABLE(pci, pch_ieee1588_pcidev_id);
 
 static SIMPLE_DEV_PM_OPS(pch_pm_ops, pch_suspend, pch_resume);