Skip to contentSkip to conversation

mailbox: mtk-cmdq-mailbox: fix module autoloading

PATCH In review Krzysztof Kozlowski 2 participants 2 messages Apr 10, 2024

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

PATCH 1/1 mailbox: mtk-cmdq-mailbox: fix module autoloading

Add MODULE_DEVICE_TABLE(), so this module could be properly autoloaded based on the alias from of_device_id table.

---
 drivers/mailbox/mtk-cmdq-mailbox.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mailbox/mtk-cmdq-mailbox.c +1 -0
index ead2200f39ba..080d091e28ac 100644
@@ -765,6 +765,7 @@ static const struct of_device_id cmdq_of_ids[] = {
 	{.compatible = "mediatek,mt8195-gce", .data = (void *)&gce_plat_mt8195},
 	{}
 };
+MODULE_DEVICE_TABLE(of, cmdq_of_ids);
 
 static struct platform_driver cmdq_drv = {
 	.probe = cmdq_probe,
Signature · 1 line
2.34.1