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

* [PATCH 2/2] nvmem: sprd: fix module autoloading
  2024-04-10 17:26 [PATCH 1/2] nvmem: sc27xx: fix module autoloading Krzysztof Kozlowski
@ 2024-04-10 17:26 ` Krzysztof Kozlowski
  2024-04-11 10:02 ` [PATCH 1/2] nvmem: sc27xx: " Srinivas Kandagatla
  1 sibling, 0 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/sprd-efuse.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/nvmem/sprd-efuse.c b/drivers/nvmem/sprd-efuse.c
index bb3105f3291f..1a7e4e5d8b86 100644
--- a/drivers/nvmem/sprd-efuse.c
+++ b/drivers/nvmem/sprd-efuse.c
@@ -426,6 +426,7 @@ static const struct of_device_id sprd_efuse_of_match[] = {
 	{ .compatible = "sprd,ums312-efuse", .data = &ums312_data },
 	{ }
 };
+MODULE_DEVICE_TABLE(of, sprd_efuse_of_match);
 
 static struct platform_driver sprd_efuse_driver = {
 	.probe = sprd_efuse_probe,
-- 
2.34.1


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

* Re: [PATCH 1/2] nvmem: sc27xx: fix module autoloading
  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 ` Srinivas Kandagatla
  1 sibling, 0 replies; 3+ messages in thread
From: Srinivas Kandagatla @ 2024-04-11 10:02 UTC (permalink / raw)
  To: Orson Zhai, Baolin Wang, Chunyan Zhang, linux-kernel,
	Krzysztof Kozlowski


On Wed, 10 Apr 2024 19:26:33 +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/2] nvmem: sc27xx: fix module autoloading
      commit: fc7d05b8e427937591e3cf6c2ca493aac9ade5a8
[2/2] nvmem: sprd: fix module autoloading
      commit: fbd0d725d4fada00426611a5d6ac70602509be94

Best regards,
-- 
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>


^ 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®