All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] net: mdio: Add missing MODULE_DEVICE_TABLE
@ 2021-05-12  3:30 ` Zou Wei
  0 siblings, 0 replies; 9+ messages in thread
From: Zou Wei @ 2021-05-12  3:30 UTC (permalink / raw)
  To: linux-aspeed

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 <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
---
 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


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-05-12 12:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-12  3:30 [PATCH net-next] net: mdio: Add missing MODULE_DEVICE_TABLE Zou Wei
2021-05-12  3:30 ` Zou Wei
2021-05-12  3:30 ` Zou Wei
2021-05-12  6:34 ` Joel Stanley
2021-05-12  6:34   ` Joel Stanley
2021-05-12  6:34   ` Joel Stanley
2021-05-12 12:42 ` Andrew Lunn
2021-05-12 12:42   ` Andrew Lunn
2021-05-12 12:42   ` Andrew Lunn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.