diff mbox series

[-next] power: reset: hisi-reboot: add missing MODULE_DEVICE_TABLE

Message ID 20210409025011.8796-1-chenlifu@huawei.com (mailing list archive)
State Not Applicable, archived
Headers show
Series [-next] power: reset: hisi-reboot: add missing MODULE_DEVICE_TABLE | expand

Commit Message

chenlifu April 9, 2021, 2:50 a.m. UTC
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>
---
 drivers/power/reset/hisi-reboot.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Sebastian Reichel April 9, 2021, 11:51 a.m. UTC | #1
Hi,

On Fri, Apr 09, 2021 at 10:50:11AM +0800, Chen Lifu wrote:
> 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>
> ---

Thanks, queued.

-- Sebastian

>  drivers/power/reset/hisi-reboot.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> 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,
>
diff mbox series

Patch

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,