]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: mdio: aspeed: Add missing MODULE_DEVICE_TABLE
authorJoel Stanley <joel@jms.id.au>
Wed, 9 Feb 2022 00:03:59 +0000 (10:33 +1030)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Feb 2022 12:15:21 +0000 (12:15 +0000)
Fix loading of the driver when built as a module.

Fixes: 31d56b3f9077 ("net: phy: Add mdio-aspeed")
Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mdio/mdio-aspeed.c

index 966c3b4ad59d14e74bc113680e0fbff231d296d2..e2273588c75b6f3dd212269611d7f41a8769ed16 100644 (file)
@@ -148,6 +148,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 = {