Commit c76afed1 authored by Liao Chen's avatar Liao Chen Committed by Jakub Kicinski
Browse files

net: ag71xx: fix module autoloading



Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.

Signed-off-by: default avatarLiao Chen <liaochen4@huawei.com>
Link: https://patch.msgid.link/20240826091858.369910-3-liaochen4@huawei.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 2e25147a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2022,6 +2022,7 @@ static const struct of_device_id ag71xx_match[] = {
	{ .compatible = "qca,qca9560-eth", .data = &ag71xx_dcfg_qca9550 },
	{}
};
MODULE_DEVICE_TABLE(of, ag71xx_match);

static struct platform_driver ag71xx_driver = {
	.probe		= ag71xx_probe,