net: mdio: Add missing MODULE_DEVICE_TABLE
Subsystems (4)
PATCH 1/1 net: mdio: Add missing MODULE_DEVICE_TABLE
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 <[email protected]>
Signed-off-by Zou Wei <[email protected]>
--- drivers/net/mdio/mdio-aspeed.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/mdio/mdio-aspeed.c +1 -0
@@ -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 = {
Signature · 1 line
2.6.2
Quoted 7 lines · Zou Wei
This patch adds missing
MODULE_DEVICE_TABLEdefinition which generates correct modalias for automatic loading of this driver when it is built as an external module.Reported-by Hulk Robot <[email protected]>Signed-off-by Zou Wei <[email protected]>
Fixes f160e99462c6 ("net: phy: Add mdio-aspeed")
Acked-by Joel Stanley <[email protected]>
Thanks for the patch.
Andrew Lunn
maintainerQuoted 3 lines · Zou Wei
This patch adds missing
MODULE_DEVICE_TABLEdefinition 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