drivers: power: add missing MODULE_DEVICE_TABLE in keystone-reset.c
authorYu Jiahua <yujiahua1@huawei.com>
Wed, 16 Jun 2021 03:46:22 +0000 (19:46 -0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 29 Jun 2021 22:06:37 +0000 (00:06 +0200)
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>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/keystone-reset.c

index 211eeef..c720112 100644 (file)
@@ -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)
 {