]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Oct 2021 08:10:51 +0000 (10:10 +0200)
[ Upstream commit 7cd8b1542a7ba0720c5a0a85ed414a122015228b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ptp/ptp_pch.c

index 78ccf936d3560bff698a0eb2d0e2be5e9e45051d..84feaa140f1b3e26748dba006f3c6d09a2f51e37 100644 (file)
@@ -695,6 +695,7 @@ static const struct pci_device_id pch_ieee1588_pcidev_id[] = {
         },
        {0}
 };
+MODULE_DEVICE_TABLE(pci, pch_ieee1588_pcidev_id);
 
 static struct pci_driver pch_driver = {
        .name = KBUILD_MODNAME,