diff mbox series

memory: mtk-smi: fix module autoloading

Message ID 20240409204615.83928-1-krzysztof.kozlowski@linaro.org (mailing list archive)
State New, archived
Headers show
Series memory: mtk-smi: fix module autoloading | expand

Commit Message

Krzysztof Kozlowski April 9, 2024, 8:46 p.m. UTC
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 <krzysztof.kozlowski@linaro.org>
---
 drivers/memory/mtk-smi.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

AngeloGioacchino Del Regno April 10, 2024, 9:40 a.m. UTC | #1
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 <krzysztof.kozlowski@linaro.org>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Yong Wu (吴勇) April 11, 2024, 1:22 a.m. UTC | #2
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 <krzysztof.kozlowski@linaro.org>

Thanks.

Reviewed-by: Yong Wu <yong.wu@mediatek.com>
Krzysztof Kozlowski April 11, 2024, 6:23 a.m. UTC | #3
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,
diff mbox series

Patch

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)
 {