Skip to contentSkip to conversation

power/reset: Add missing MODULE_DEVICE_TABLE

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

Subsystems (2)
lore
Share & tools
lore

Bixuan Cui

author
#0 lore raw

PATCH 1/1 power/reset: 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/restart-poweroff.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/reset/restart-poweroff.c +1 -0
index d233daa5835b..04d4228119b2 100644
@@ -45,6 +45,7 @@ static const struct of_device_id of_restart_poweroff_match[] = {
 	{ .compatible = "restart-poweroff", },
 	{},
 };
+MODULE_DEVICE_TABLE(of, of_restart_poweroff_match);
 
 static struct platform_driver restart_poweroff_driver = {
 	.probe = restart_poweroff_probe,
#1 lore raw

Hi,

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.

---

Thanks, queued.

-- Sebastian

Quoted 16 lines
 drivers/power/reset/restart-poweroff.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/reset/restart-poweroff.c +1 -0
index d233daa5835b..04d4228119b2 100644
@@ -45,6 +45,7 @@ static const struct of_device_id of_restart_poweroff_match[] = {
 	{ .compatible = "restart-poweroff", },
 	{},
 };
+MODULE_DEVICE_TABLE(of, of_restart_poweroff_match);
 
 static struct platform_driver restart_poweroff_driver = {
 	.probe = restart_poweroff_probe,