Skip to contentSkip to conversation

power: reset: hisi-reboot: add missing MODULE_DEVICE_TABLE

PATCH In review Chen Lifu 2 participants 2 messages Apr 9, 2021

Subsystems (2)
lore
Share & tools
lore

Chen Lifu

author
#0 lore raw

PATCH 1/1 power: reset: hisi-reboot: 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/power/reset/hisi-reboot.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/reset/hisi-reboot.c +1 -0
index 5abc5f6ba0fd..34409340528f 100644
@@ -68,6 +68,7 @@ static const struct of_device_id hisi_reboot_of_match[] = {
 	{ .compatible = "hisilicon,sysctrl" },
 	{}
 };
+MODULE_DEVICE_TABLE(of, hisi_reboot_of_match);
 
 static struct platform_driver hisi_reboot_driver = {
 	.probe = hisi_reboot_probe,
#1 lore raw

Hi,

Quoted 7 lines · Chen Lifu

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.

---

Thanks, queued.

-- Sebastian

Quoted 16 lines
 drivers/power/reset/hisi-reboot.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/reset/hisi-reboot.c +1 -0
index 5abc5f6ba0fd..34409340528f 100644
@@ -68,6 +68,7 @@ static const struct of_device_id hisi_reboot_of_match[] = {
 	{ .compatible = "hisilicon,sysctrl" },
 	{}
 };
+MODULE_DEVICE_TABLE(of, hisi_reboot_of_match);
 
 static struct platform_driver hisi_reboot_driver = {
 	.probe = hisi_reboot_probe,