diff options
author | Chen Lifu <chenlifu@huawei.com> | 2021-04-09 04:50:11 +0200 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2021-04-09 13:50:01 +0200 |
commit | 2d54a2222c4ad03b5a5e86fc77c053053ef921c7 (patch) | |
tree | 581987295529b020b0e253be2f4dbc99422eabe8 /drivers/power | |
parent | power: supply: s3c_adc_battery: fix possible use-after-free in s3c_adc_bat_re... (diff) | |
download | linux-2d54a2222c4ad03b5a5e86fc77c053053ef921c7.tar.xz linux-2d54a2222c4ad03b5a5e86fc77c053053ef921c7.zip |
power: reset: hisi-reboot: 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: Chen Lifu <chenlifu@huawei.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/reset/hisi-reboot.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/reset/hisi-reboot.c b/drivers/power/reset/hisi-reboot.c index 5abc5f6ba0fd..34409340528f 100644 --- a/drivers/power/reset/hisi-reboot.c +++ b/drivers/power/reset/hisi-reboot.c @@ -68,6 +68,7 @@ static const struct of_device_id hisi_reboot_of_match[] = { { .compatible = "hisilicon,sysctrl" }, {} }; +MODULE_DEVICE_TABLE(of, hisi_reboot_of_match); static struct platform_driver hisi_reboot_driver = { .probe = hisi_reboot_probe, |