Skip to contentSkip to conversation

net: wan: fsl_qmc_hdlc: Fix module compilation

PATCH Applied Herve Codina 2 participants 2 messages Mar 14, 2024 – Mar 18, 2024

Subsystems (3)
lore
Share & tools
lore

Herve Codina

author maintainer
#0 lore raw

PATCH 1/1 net: wan: fsl_qmc_hdlc: Fix module compilation

The fsl_qmc_driver does not compile as module:
error: ‘qmc_hdlc_driver’ undeclared here (not in a function);

    405 | MODULE_DEVICE_TABLE(of, qmc_hdlc_driver);
        |                         ^~~~~~~~~~~~~~~

Fix the typo.

Fixes b40f00ecd463 ("net: wan: Add support for QMC HDLC")
---
 drivers/net/wan/fsl_qmc_hdlc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wan/fsl_qmc_hdlc.c +1 -1
index 960371df470a..f69b1f579a0c 100644
@@ -780,7 +780,7 @@ static const struct of_device_id qmc_hdlc_id_table[] = {
 	{ .compatible = "fsl,qmc-hdlc" },
 	{} /* sentinel */
 };
-MODULE_DEVICE_TABLE(of, qmc_hdlc_driver);
+MODULE_DEVICE_TABLE(of, qmc_hdlc_id_table);
 
 static struct platform_driver qmc_hdlc_driver = {
 	.driver = {
Signature · 1 line
2.44.0
#1 lore raw
This patch was applied to netdev/net.git (main) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <[email protected]>:

Quoted 8 lines · On Thu, 14 Mar 2024 13:33:46 +0100 you wrote:

The fsl_qmc_driver does not compile as module:
error: ‘qmc_hdlc_driver’ undeclared here (not in a function);

    405 | MODULE_DEVICE_TABLE(of, qmc_hdlc_driver);
        |                         ^~~~~~~~~~~~~~~

Fix the typo.

[...]

Here is the summary with links:
- net: wan: fsl_qmc_hdlc: Fix module compilation

    https://git.kernel.org/netdev/net/c/badc9e33c795

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html