From: Andy Shevchenko Date: Fri, 1 Oct 2021 16:20:33 +0000 (+0300) Subject: ptp_pch: Load module automatically if ID matches X-Git-Tag: v5.15~123^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cd8b1542a7ba0720c5a0a85ed414a122015228b;p=platform%2Fkernel%2Flinux-starfive.git ptp_pch: Load module automatically if ID matches 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 Signed-off-by: David S. Miller --- diff --git a/drivers/ptp/ptp_pch.c b/drivers/ptp/ptp_pch.c index a17e8cc..8070f3f 100644 --- a/drivers/ptp/ptp_pch.c +++ b/drivers/ptp/ptp_pch.c @@ -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);