mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] nvmem: sc27xx: fix module autoloading
@ 2024-04-10 17:26 Krzysztof Kozlowski
  2024-04-10 17:26 ` [PATCH 2/2] nvmem: sprd: " Krzysztof Kozlowski
  2024-04-11 10:02 ` [PATCH 1/2] nvmem: sc27xx: " Srinivas Kandagatla
  0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2024-04-10 17:26 UTC (permalink / raw)
  To: Srinivas Kandagatla, Orson Zhai, Baolin Wang, Chunyan Zhang,
	linux-kernel
  Cc: Krzysztof Kozlowski

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@kernel.org>
---
 drivers/nvmem/sc27xx-efuse.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/nvmem/sc27xx-efuse.c b/drivers/nvmem/sc27xx-efuse.c
index bff27011f4ff..4e2ffefac96c 100644
--- a/drivers/nvmem/sc27xx-efuse.c
+++ b/drivers/nvmem/sc27xx-efuse.c
@@ -262,6 +262,7 @@ static const struct of_device_id sc27xx_efuse_of_match[] = {
 	{ .compatible = "sprd,sc2730-efuse", .data = &sc2730_edata},
 	{ }
 };
+MODULE_DEVICE_TABLE(of, sc27xx_efuse_of_match);
 
 static struct platform_driver sc27xx_efuse_driver = {
 	.probe = sc27xx_efuse_probe,
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-11 10:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-10 17:26 [PATCH 1/2] nvmem: sc27xx: fix module autoloading Krzysztof Kozlowski
2024-04-10 17:26 ` [PATCH 2/2] nvmem: sprd: " Krzysztof Kozlowski
2024-04-11 10:02 ` [PATCH 1/2] nvmem: sc27xx: " Srinivas Kandagatla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®