OSDN Git Service

power: reset: restart-poweroff: Add missing MODULE_DEVICE_TABLE
authorBixuan Cui <cuibixuan@huawei.com>
Sat, 10 Apr 2021 03:50:40 +0000 (11:50 +0800)
committerSebastian Reichel <sre@kernel.org>
Mon, 12 Apr 2021 19:18:52 +0000 (21:18 +0200)
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 <hulkci@huawei.com>
Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/restart-poweroff.c

index d233daa..04d4228 100644 (file)
@@ -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,