[PATCH net-next] net: mdio: Add missing MODULE_DEVICE_TABLE

Subsystems: ethernet phy library, networking drivers, the rest

STALE1911d

3 messages, 3 authors, 2021-05-12 · open the first message on its own page

[PATCH net-next] net: mdio: Add missing MODULE_DEVICE_TABLE

From: Zou Wei <hidden>
Date: 2021-05-12 03:13:16

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: Zou Wei <redacted>
---
 drivers/net/mdio/mdio-aspeed.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/net/mdio/mdio-aspeed.c b/drivers/net/mdio/mdio-aspeed.c
index cad8205..bb9933f 100644
--- a/drivers/net/mdio/mdio-aspeed.c
+++ b/drivers/net/mdio/mdio-aspeed.c
@@ -141,6 +141,7 @@ static const struct of_device_id aspeed_mdio_of_match[] = {
 	{ .compatible = "aspeed,ast2600-mdio", },
 	{ },
 };
+MODULE_DEVICE_TABLE(of, aspeed_mdio_of_match);
 
 static struct platform_driver aspeed_mdio_driver = {
 	.driver = {
-- 
2.6.2

Re: [PATCH net-next] net: mdio: Add missing MODULE_DEVICE_TABLE

From: Joel Stanley <joel@jms.id.au>
Date: 2021-05-12 06:34:59

On Wed, 12 May 2021 at 03:13, Zou Wei [off-list ref] 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: Zou Wei <redacted>
Fixes: f160e99462c6 ("net: phy: Add mdio-aspeed")
Acked-by: Joel Stanley <joel@jms.id.au>

Thanks for the patch.

Re: [PATCH net-next] net: mdio: Add missing MODULE_DEVICE_TABLE

From: Andrew Lunn <andrew@lunn.ch>
Date: 2021-05-12 12:42:39

On Wed, May 12, 2021 at 11:30:04AM +0800, Zou Wei 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.
Please make the subject line more specific. There are a number of MDIO
bus drivers in the kernel. Adding "aspeed:" would make it clear which
one you are changing.

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