summary refs log tree commit diff
path: root/drivers
diff options
context:
space:
mode:
authorLorenz Brun <lorenz@brun.one>2023-02-18 12:29:45 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-05-11 23:03:24 +0900
commit9c036152adf8474aed92b76395cfa4e83d4b2d3b (patch)
tree1ad3f80db199513df5d181738bfa7595a656b814 /drivers
parentbd5121ef184265cdac9589cf1ba50fc2f10ca116 (diff)
downloadlinux-9c036152adf8474aed92b76395cfa4e83d4b2d3b.tar.gz
wifi: mt76: mt7915: expose device tree match table
[ Upstream commit 90fb69212c60e26ef70ed0e8532b116c7649ac88 ]

On MT7986 the WiFi driver currently does not get automatically loaded,
requiring manual modprobing because the device tree compatibles are not
exported into metadata.

Add the missing MODULE_DEVICE_TABLE macro to fix this.

Fixes: 99ad32a4ca3a2 ("mt76: mt7915: add support for MT7986")
Signed-off-by: Lorenz Brun <lorenz@brun.one>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7915/soc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/soc.c b/drivers/net/wireless/mediatek/mt76/mt7915/soc.c
index ee7ddda4288b..20a6724ab5db 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/soc.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/soc.c
@@ -1228,6 +1228,8 @@ static const struct of_device_id mt7986_wmac_of_match[] = {
 	{},
 };
 
+MODULE_DEVICE_TABLE(of, mt7986_wmac_of_match);
+
 struct platform_driver mt7986_wmac_driver = {
 	.driver = {
 		.name = "mt7986-wmac",