Skip to contentSkip to conversation

clk: mediatek: mt7988-apmixed: publish the OF module alias

PATCH In review Pengpeng Hou 2 participants 2 messages Sep 20 – Sep 21

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

PATCH v2 1/1 clk: mediatek: mt7988-apmixed: publish the OF module alias

COMMON_CLK_MT7988 permits a module build, and the apmixed driver matches mediatek,mt7988-apmixedsys through its OF table. The table is not exported, so the module does not publish the corresponding autoload alias.

Add MODULE_DEVICE_TABLE() for that existing table.

The issue was found by our static-analysis tool.

Fixes 4b4719437d85 ("clk: mediatek: add drivers for MT7988 SoC")
Assisted-by gpt 5

---
Changes since v1:
https://lore.kernel.org/all/[email protected]/
Use the full author name in the submission identity; retain the code reviewed by Daniel.

 drivers/clk/mediatek/clk-mt7988-apmixed.c |    1 +
 1 file changed, 1 insertion(+)
drivers/clk/mediatek/clk-mt7988-apmixed.c +1 -0
index 416a4b88d100..24f4e7b87a31 100644
@@ -75,6 +75,7 @@ static const struct of_device_id of_match_clk_mt7988_apmixed[] = {
 	{ .compatible = "mediatek,mt7988-apmixedsys" },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, of_match_clk_mt7988_apmixed);
 
 static int clk_mt7988_apmixed_probe(struct platform_device *pdev)
 {

base-commit: 518e5b794c06c0f0eb40df3e202274a66202c137

Signature · 1 line
2.50.1 (Apple Git-155)
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 5 lines · Pengpeng Hou

COMMON_CLK_MT7988 permits a module build, and the apmixed driver matches mediatek,mt7988-apmixedsys through its OF table. The table is not exported, so the module does not publish the corresponding autoload alias.

Quoted 8 lines

Add MODULE_DEVICE_TABLE() for that existing table.

The issue was found by our static-analysis tool.

Fixes 4b4719437d85 ("clk: mediatek: add drivers for MT7988 SoC")
Assisted-by gpt 5