2024-04-10 15:25:58

by Krzysztof Kozlowski

[permalink] [raw]
Subject: [PATCH] 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.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
drivers/mailbox/mtk-cmdq-mailbox.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c
index ead2200f39ba..080d091e28ac 100644
--- a/drivers/mailbox/mtk-cmdq-mailbox.c
+++ b/drivers/mailbox/mtk-cmdq-mailbox.c
@@ -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,
--
2.34.1



Subject: Re: [PATCH] mailbox: mtk-cmdq-mailbox: fix module autoloading

Il 10/04/24 17:25, Krzysztof Kozlowski ha scritto:
> Add MODULE_DEVICE_TABLE(), so this module could be properly autoloaded
> based on the alias from of_device_id table.
>
> Signed-off-by: Krzysztof Kozlowski <[email protected]>

Reviewed-by: AngeloGioacchino Del Regno <[email protected]>