From: Chen Lifu Date: Fri, 9 Apr 2021 02:50:11 +0000 (+0800) Subject: power: reset: hisi-reboot: add missing MODULE_DEVICE_TABLE X-Git-Tag: v5.13-rc1~112^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2d54a2222c4ad03b5a5e86fc77c053053ef921c7;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Chen Lifu Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/reset/hisi-reboot.c b/drivers/power/reset/hisi-reboot.c index 5abc5f6ba0fd5..34409340528f5 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,