From: Bixuan Cui Date: Sat, 10 Apr 2021 03:50:40 +0000 (+0800) Subject: power: reset: restart-poweroff: Add missing MODULE_DEVICE_TABLE X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e318c3c2ae7d64ae47467044523bd3e2da5c5ce6;p=linux.git power: reset: restart-poweroff: 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 Signed-off-by: Bixuan Cui Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/reset/restart-poweroff.c b/drivers/power/reset/restart-poweroff.c index d233daa5835b5..04d4228119b2c 100644 --- a/drivers/power/reset/restart-poweroff.c +++ b/drivers/power/reset/restart-poweroff.c @@ -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,