2024-04-09 20:46:46

by Krzysztof Kozlowski

[permalink] [raw]
Subject: [PATCH] memory: mtk-smi: fix module autoloading

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

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
drivers/memory/mtk-smi.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/memory/mtk-smi.c b/drivers/memory/mtk-smi.c
index 572c7fbdcfd3..fbe52ecc0eca 100644
--- a/drivers/memory/mtk-smi.c
+++ b/drivers/memory/mtk-smi.c
@@ -450,6 +450,7 @@ static const struct of_device_id mtk_smi_larb_of_ids[] = {
{.compatible = "mediatek,mt8195-smi-larb", .data = &mtk_smi_larb_mt8195},
{}
};
+MODULE_DEVICE_TABLE(of, mtk_smi_larb_of_ids);

static int mtk_smi_larb_sleep_ctrl_enable(struct mtk_smi_larb *larb)
{
@@ -735,6 +736,7 @@ static const struct of_device_id mtk_smi_common_of_ids[] = {
{.compatible = "mediatek,mt8365-smi-common", .data = &mtk_smi_common_mt8365},
{}
};
+MODULE_DEVICE_TABLE(of, mtk_smi_common_of_ids);

static int mtk_smi_common_probe(struct platform_device *pdev)
{
--
2.34.1



Subject: Re: [PATCH] memory: mtk-smi: fix module autoloading

Il 09/04/24 22:46, Krzysztof Kozlowski ha scritto:
> Add MODULE_DEVICE_TABLE(), so the 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]>


2024-04-11 01:22:50

by Yong Wu (吴勇)

[permalink] [raw]
Subject: Re: [PATCH] memory: mtk-smi: fix module autoloading

On Tue, 2024-04-09 at 22:46 +0200, Krzysztof Kozlowski wrote:
>
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> Add MODULE_DEVICE_TABLE(), so the module could be properly
> autoloaded
> based on the alias from of_device_id table.
>
> Signed-off-by: Krzysztof Kozlowski <[email protected]>

Thanks.

Reviewed-by: Yong Wu <[email protected]>

2024-04-11 06:23:39

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH] memory: mtk-smi: fix module autoloading


On Tue, 09 Apr 2024 22:46:15 +0200, Krzysztof Kozlowski wrote:
> Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded
> based on the alias from of_device_id table.
>
>

Applied, thanks!

[1/1] memory: mtk-smi: fix module autoloading
https://git.kernel.org/krzk/linux-mem-ctrl/c/bf11908757eeab716536d16a32693b5dcd6990de

Best regards,
--
Krzysztof Kozlowski <[email protected]>