summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-10-01 19:20:33 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-13 10:10:51 +0200
commit1c1d9acb9da780b896a5c86f1747bedca5bbd3f5 (patch)
treef7f706c21a8f650ba8225b19cceb715b0950c08a
parent3be9334fbfda238caf1d3692fbdb8a7b731441b6 (diff)
downloadlinux-stable-1c1d9acb9da780b896a5c86f1747bedca5bbd3f5.tar.gz
linux-stable-1c1d9acb9da780b896a5c86f1747bedca5bbd3f5.tar.bz2
linux-stable-1c1d9acb9da780b896a5c86f1747bedca5bbd3f5.zip
ptp_pch: Load module automatically if ID matches
[ 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>
-rw-r--r--drivers/ptp/ptp_pch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ptp/ptp_pch.c b/drivers/ptp/ptp_pch.c
index 78ccf936d356..84feaa140f1b 100644
--- a/drivers/ptp/ptp_pch.c
+++ b/drivers/ptp/ptp_pch.c
@@ -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,