diff options
author | Bixuan Cui <cuibixuan@huawei.com> | 2021-05-08 05:14:59 +0200 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2021-06-04 12:58:30 +0200 |
commit | ed3443fb4df4e140a22f65144546c8a8e1e27f4e (patch) | |
tree | 055d5f3e8fd349e566aff5bb6deca2e23d0ffd37 /drivers/power/reset | |
parent | power: supply: rt5033_battery: Fix device tree enumeration (diff) | |
download | linux-ed3443fb4df4e140a22f65144546c8a8e1e27f4e.tar.xz linux-ed3443fb4df4e140a22f65144546c8a8e1e27f4e.zip |
power: reset: gpio-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 <hulkci@huawei.com>
Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/reset')
-rw-r--r-- | drivers/power/reset/gpio-poweroff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/reset/gpio-poweroff.c b/drivers/power/reset/gpio-poweroff.c index c5067eb75370..1c5af2fef142 100644 --- a/drivers/power/reset/gpio-poweroff.c +++ b/drivers/power/reset/gpio-poweroff.c @@ -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, |