power: reset: gpio-poweroff: add missing MODULE_DEVICE_TABLE
authorBixuan Cui <cuibixuan@huawei.com>
Sat, 8 May 2021 03:14:59 +0000 (11:14 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 4 Jun 2021 10:58:30 +0000 (12:58 +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/gpio-poweroff.c

index c5067eb753706b0e592801bc9d3afdc2bd6454b8..1c5af2fef1423af68dbbbd1880b8aab6480f2957 100644 (file)
@@ -90,6 +90,7 @@ static const struct of_device_id of_gpio_poweroff_match[] = {
        { .compatible = "gpio-poweroff", },
        {},
 };
+MODULE_DEVICE_TABLE(of, of_gpio_poweroff_match);
 
 static struct platform_driver gpio_poweroff_driver = {
        .probe = gpio_poweroff_probe,