Skip to contentSkip to conversation

nvmem: sc27xx: fix module autoloading

PATCH Applied Krzysztof Kozlowski 2 participants 3 messages Apr 10, 2024 – Apr 11, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 nvmem: sc27xx: fix module autoloading

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

---
 drivers/nvmem/sc27xx-efuse.c | 1 +
 1 file changed, 1 insertion(+)
drivers/nvmem/sc27xx-efuse.c +1 -0
index bff27011f4ff..4e2ffefac96c 100644
@@ -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,
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 nvmem: sprd: fix module autoloading

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

---
 drivers/nvmem/sprd-efuse.c | 1 +
 1 file changed, 1 insertion(+)
drivers/nvmem/sprd-efuse.c +1 -0
index bb3105f3291f..1a7e4e5d8b86 100644
@@ -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,
Signature · 1 line
2.34.1
#2 lore raw
In reply to Krzysztof Kozlowski
Quoted 4 lines · Krzysztof Kozlowski

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,

Signature · 1 line
Srinivas Kandagatla <[email protected]>