提交 4f7fd856 编写于 作者: J Joel Stanley 提交者: Zheng Zengkai

net: mdio: aspeed: Add missing MODULE_DEVICE_TABLE

stable inclusion
from stable-v5.10.101
commit ef5cdae8bc00c37317b5375811457a6b46f8440b
bugzilla: https://gitee.com/openeuler/kernel/issues/I5669Z

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ef5cdae8bc00c37317b5375811457a6b46f8440b

--------------------------------

[ Upstream commit bc1c3c3b ]

Fix loading of the driver when built as a module.

Fixes: f160e994 ("net: phy: Add mdio-aspeed")
Signed-off-by: NJoel Stanley <joel@jms.id.au>
Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
Acked-by: NAndrew Jeffery <andrew@aj.id.au>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYu Liao <liaoyu15@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 5d6d672b
...@@ -148,6 +148,7 @@ static const struct of_device_id aspeed_mdio_of_match[] = { ...@@ -148,6 +148,7 @@ static const struct of_device_id aspeed_mdio_of_match[] = {
{ .compatible = "aspeed,ast2600-mdio", }, { .compatible = "aspeed,ast2600-mdio", },
{ }, { },
}; };
MODULE_DEVICE_TABLE(of, aspeed_mdio_of_match);
static struct platform_driver aspeed_mdio_driver = { static struct platform_driver aspeed_mdio_driver = {
.driver = { .driver = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册