Skip to contentSkip to conversation

nvmem: sprd: Add missing MODULE_DEVICE_TABLE

PATCH In review Bixuan Cui 2 participants 2 messages Apr 10, 2021 – Apr 12, 2021

Subsystems (3)
lore
Share & tools
lore

Bixuan Cui

author
#0 lore raw

PATCH 1/1 nvmem: sprd: Add missing MODULE_DEVICE_TABLE

This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module.

---
 drivers/nvmem/sprd-efuse.c | 1 +
 1 file changed, 1 insertion(+)
drivers/nvmem/sprd-efuse.c +1 -0
index 59523245db8a..5d394559edf2 100644
@@ -425,6 +425,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,
#1 lore raw
Quoted 7 lines · Bixuan Cui

This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module.

---

Applied thanks,

--srini

Quoted 16 lines
  drivers/nvmem/sprd-efuse.c | 1 +
  1 file changed, 1 insertion(+)
drivers/nvmem/sprd-efuse.c +1 -0
index 59523245db8a..5d394559edf2 100644
@@ -425,6 +425,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,