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

From: Yu Jiahua
Date: Tue Jun 15 2021 - 23:45:38 EST


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@xxxxxxxxxx>
---
drivers/power/reset/keystone-reset.c | 1 +
1 file changed, 1 insertion(+)

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)
{
--
2.17.1