All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] power: reset: hisi-reboot: add missing MODULE_DEVICE_TABLE
@ 2021-04-09  2:50 Chen Lifu
  2021-04-09 11:51 ` Sebastian Reichel
  0 siblings, 1 reply; 2+ messages in thread
From: Chen Lifu @ 2021-04-09  2:50 UTC (permalink / raw)
  To: Sebastian Reichel; +Cc: linux-kernel, Chen Lifu, linux-pm, kernel-janitors

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(+)

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,


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] power: reset: hisi-reboot: add missing MODULE_DEVICE_TABLE
  2021-04-09  2:50 [PATCH -next] power: reset: hisi-reboot: add missing MODULE_DEVICE_TABLE Chen Lifu
@ 2021-04-09 11:51 ` Sebastian Reichel
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2021-04-09 11:51 UTC (permalink / raw)
  To: Chen Lifu; +Cc: linux-kernel, linux-pm, kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 974 bytes --]

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,
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-09 11:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09  2:50 [PATCH -next] power: reset: hisi-reboot: add missing MODULE_DEVICE_TABLE Chen Lifu
2021-04-09 11:51 ` Sebastian Reichel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.