Skip to contentSkip to conversation

mt76: mt7915: expose device tree match table

PATCH In review Lorenz Brun 2 participants 2 messages Feb 18, 2023 – Feb 20, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mt76: mt7915: expose device tree match table

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")
---
 drivers/net/wireless/mediatek/mt76/mt7915/soc.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/wireless/mediatek/mt76/mt7915/soc.c +2 -0
index 2ac0a0f2859cb..32c137066e7f7 100644
@@ -1239,6 +1239,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",
Signature · 1 line
2.39.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

Il 18/02/23 12:29, Lorenz Brun ha scritto:

Quoted 8 lines

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")

I don't think that this commit needs a Fixes tag, as you're only adding (good) auto-load commodity.

Regardless of that: