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

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.