]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: dm9051: fix module autoloading
authorLiao Chen <liaochen4@huawei.com>
Mon, 26 Aug 2024 09:18:56 +0000 (09:18 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Aug 2024 21:26:04 +0000 (14:26 -0700)
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.

Signed-off-by: Liao Chen <liaochen4@huawei.com>
Link: https://patch.msgid.link/20240826091858.369910-2-liaochen4@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/davicom/dm9051.c

index bcfe52c11804aa24924f0fd83bb40c04dc506026..59ea48d4c9deda73801e7a963492da42ffe3805d 100644 (file)
@@ -1235,6 +1235,7 @@ static const struct of_device_id dm9051_match_table[] = {
        { .compatible = "davicom,dm9051" },
        {}
 };
+MODULE_DEVICE_TABLE(of, dm9051_match_table);
 
 static const struct spi_device_id dm9051_id_table[] = {
        { "dm9051", 0 },