Skip to content

Commit

Permalink
net: mdio: aspeed: Add missing MODULE_DEVICE_TABLE
Browse files Browse the repository at this point in the history
[ Upstream commit bc1c3c3 ]

Fix loading of the driver when built as a module.

Fixes: f160e99 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
shenki authored and gregkh committed Feb 16, 2022
1 parent fd45628 commit baaf772
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/mdio/mdio-aspeed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit baaf772

Please sign in to comment.