diff mbox series

[-next] drivers: power: add missing MODULE_DEVICE_TABLE in keystone-reset.c

Message ID 20210616034622.35766-1-yujiahua1@huawei.com
State Accepted
Commit 30e677a2ba2920b1234d1b38307dfa1dbb993e20
Headers show
Series [-next] drivers: power: add missing MODULE_DEVICE_TABLE in keystone-reset.c | expand

Commit Message

Yu Jiahua June 16, 2021, 3:46 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.

Signed-off-by: Yu Jiahua <yujiahua1@huawei.com>
---
 drivers/power/reset/keystone-reset.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/power/reset/keystone-reset.c b/drivers/power/reset/keystone-reset.c
index 211eeef0c81a..c720112db704 100644
--- a/drivers/power/reset/keystone-reset.c
+++ b/drivers/power/reset/keystone-reset.c
@@ -71,6 +71,7 @@  static const struct of_device_id rsctrl_of_match[] = {
 	{.compatible = "ti,keystone-reset", },
 	{},
 };
+MODULE_DEVICE_TABLE(of, rsctrl_of_match);
 
 static int rsctrl_probe(struct platform_device *pdev)
 {