diff mbox series

[v1,net,1/1] ptp_pch: Load module automatically if ID matches

Message ID 20211001162033.13578-1-andriy.shevchenko@linux.intel.com (mailing list archive)
State Accepted
Commit 7cd8b1542a7ba0720c5a0a85ed414a122015228b
Delegated to: Netdev Maintainers
Headers show
Series [v1,net,1/1] ptp_pch: Load module automatically if ID matches | expand

Checks

Context Check Description
netdev/cover_letter success Link
netdev/fixes_present fail Series targets non-next tree, but doesn't contain any Fixes tags
netdev/patch_count success Link
netdev/tree_selection success Clearly marked for net
netdev/subject_prefix success Link
netdev/cc_maintainers success CCed 2 of 2 maintainers
netdev/source_inline success Was 0 now: 0
netdev/verify_signedoff success Link
netdev/module_param success Was 0 now: 0
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/verify_fixes success Link
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 7 lines checked
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/header_inline success Link

Commit Message

Andy Shevchenko Oct. 1, 2021, 4:20 p.m. UTC
The driver can't be loaded automatically because it misses
module alias to be provided. Add corresponding MODULE_DEVICE_TABLE()
call to the driver.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/ptp/ptp_pch.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jakub Kicinski Oct. 1, 2021, 7:11 p.m. UTC | #1
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.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Could you reply with a Fixes tag? (no need to resend, I think)
Andy Shevchenko Oct. 1, 2021, 7:32 p.m. UTC | #2
On Fri, Oct 01, 2021 at 12:11:09PM -0700, Jakub Kicinski wrote:
> 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.
> > 
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> 
> Could you reply with a Fixes tag? (no need to resend, I think)

Fixes: 863d08ece9bf ("supports eg20t ptp clock")
patchwork-bot+netdevbpf@kernel.org Oct. 2, 2021, 3:20 p.m. UTC | #3
Hello:

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

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.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  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
diff mbox series

Patch

diff --git a/drivers/ptp/ptp_pch.c b/drivers/ptp/ptp_pch.c
index a17e8cc642c5..8070f3fd98f0 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);