power: reset: regulator-poweroff: add missing MODULE_DEVICE_TABLE
authorZou Wei <zou_wei@huawei.com>
Sat, 5 Jun 2021 01:21:23 +0000 (09:21 +0800)
committerSebastian Reichel <sre@kernel.org>
Tue, 29 Jun 2021 21:55:12 +0000 (23:55 +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: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/regulator-poweroff.c

index f697088e0ad1aad2d25baa2df5f2b87343d494b7..20701203935f06ab74e34b263ad266e208b61f04 100644 (file)
@@ -64,6 +64,7 @@ static const struct of_device_id of_regulator_poweroff_match[] = {
        { .compatible = "regulator-poweroff", },
        {},
 };
+MODULE_DEVICE_TABLE(of, of_regulator_poweroff_match);
 
 static struct platform_driver regulator_poweroff_driver = {
        .probe = regulator_poweroff_probe,