[PATCH net-next] net: dsa: b53: spi: add missing MODULE_DEVICE_TABLE

Subsystems: broadcom b53/sf2 ethernet switch driver, networking drivers, networking [dsa], the rest

STALE1961d

3 messages, 3 authors, 2021-03-26 · open the first message on its own page

[PATCH net-next] net: dsa: b53: spi: add missing MODULE_DEVICE_TABLE

From: Qinglang Miao <hidden>
Date: 2021-03-25 08:50:43

This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.

Reported-by: Hulk Robot <redacted>
Signed-off-by: Qinglang Miao <redacted>
---
 drivers/net/dsa/b53/b53_spi.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/net/dsa/b53/b53_spi.c b/drivers/net/dsa/b53/b53_spi.c
index 413158275db8..ecb9f7f6b335 100644
--- a/drivers/net/dsa/b53/b53_spi.c
+++ b/drivers/net/dsa/b53/b53_spi.c
@@ -335,6 +335,7 @@ static const struct of_device_id b53_spi_of_match[] = {
 	{ .compatible = "brcm,bcm53128" },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, b53_spi_of_match);
 
 static struct spi_driver b53_spi_driver = {
 	.driver = {

Re: [PATCH net-next] net: dsa: b53: spi: add missing MODULE_DEVICE_TABLE

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2021-03-25 19:12:41


On 3/25/2021 2:19 AM, Qinglang Miao wrote:
This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.

Reported-by: Hulk Robot <redacted>
Signed-off-by: Qinglang Miao <redacted>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

Re: [PATCH net-next] net: dsa: b53: spi: add missing MODULE_DEVICE_TABLE

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-03-26 00:21:11

Hello:

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

On Thu, 25 Mar 2021 17:19:54 +0800 you wrote:
This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.

Reported-by: Hulk Robot <redacted>
Signed-off-by: Qinglang Miao <redacted>

[...]
Here is the summary with links:
  - [net-next] net: dsa: b53: spi: add missing MODULE_DEVICE_TABLE
    https://git.kernel.org/netdev/net-next/c/866f1577ba69

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help