[PATCH] memory: brcmstb_memc: fix module autoloading

Krzysztof Kozlowski krzk at kernel.org
Wed Apr 10 10:02:41 PDT 2024


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 <krzk at kernel.org>
---
 drivers/memory/brcmstb_memc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/memory/brcmstb_memc.c b/drivers/memory/brcmstb_memc.c
index ea9213f7152e..4f17a93aa028 100644
--- a/drivers/memory/brcmstb_memc.c
+++ b/drivers/memory/brcmstb_memc.c
@@ -243,6 +243,7 @@ static const struct of_device_id brcmstb_memc_of_match[] = {
 	},
 	{}
 };
+MODULE_DEVICE_TABLE(of, brcmstb_memc_of_match);
 
 static int brcmstb_memc_suspend(struct device *dev)
 {
-- 
2.34.1




More information about the linux-arm-kernel mailing list