Skip to content

Commit

Permalink
wifi: mt76: mt7915: expose device tree match table
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
lorenz authored and nbd168 committed Feb 28, 2023
1 parent 17ec214 commit ab2d365
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mt7915/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ab2d365

Please sign in to comment.