Skip to contentSkip to conversation

ptp_pch: Load module automatically if ID matches

PATCH Applied Andy Shevchenko 3 participants 4 messages Oct 1, 2021 – Oct 2, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/ptp/ptp_pch.c | 1 +
 1 file changed, 1 insertion(+)
drivers/ptp/ptp_pch.c +1 -0
index a17e8cc642c5..8070f3fd98f0 100644
@@ -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);
 
Signature · 1 line
2.33.0
maintainer
#1 lore raw
Quoted 5 lines · On Fri, 1 Oct 2021 19:20:33 +0300 Andy Shevchenko wrote:

The driver can't be loaded automatically because it misses module alias to be provided. Add corresponding MODULE_DEVICE_TABLE() call to the driver.

Could you reply with a Fixes tag? (no need to resend, I think)

#2 lore raw
Quoted 8 lines · Jakub Kicinski
Quoted 5 lines · On Fri, 1 Oct 2021 19:20:33 +0300 Andy Shevchenko wrote:

The driver can't be loaded automatically because it misses module alias to be provided. Add corresponding MODULE_DEVICE_TABLE() call to the driver.

Could you reply with a Fixes tag? (no need to resend, I think)

Fixes 863d08ece9bf ("supports eg20t ptp clock")
Signature · 2 lines
With Best Regards,
Andy Shevchenko
#3 lore raw
In reply to Andy Shevchenko
This patch was applied to netdev/net.git (refs/heads/master):

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

Quoted 8 lines · On Fri, 1 Oct 2021 19:20:33 +0300 you wrote:

The driver can't be loaded automatically because it misses module alias to be provided. Add corresponding MODULE_DEVICE_TABLE() call to the driver.

---
 drivers/ptp/ptp_pch.c | 1 +
 1 file changed, 1 insertion(+)

Here is the summary with links:
- [v1,net,1/1] ptp_pch: Load module automatically if ID matches

    https://git.kernel.org/netdev/net/c/7cd8b1542a7b

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html