power/reset: Add missing MODULE_DEVICE_TABLE
Subsystems (2)
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.
Reported-by Hulk Robot <[email protected]>
Signed-off-by Bixuan Cui <[email protected]>
--- drivers/power/reset/restart-poweroff.c | 1 + 1 file changed, 1 insertion(+)
drivers/power/reset/restart-poweroff.c +1 -0
@@ -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,
Hi,
Quoted 7 lines · Bixuan Cui
This patch adds missing
MODULE_DEVICE_TABLEdefinition which generates correct modalias for automatic loading of this driver when it is built as an external module.Reported-by Hulk Robot <[email protected]>Signed-off-by Bixuan Cui <[email protected]>---
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@@ -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,