Skip to contentSkip to conversation

power: reset: add missing MODULE_DEVICE_TABLE

PATCH New Zou Wei 1 participant 1 message Jun 5, 2021 System reset/shutdown drivers

lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 power: reset: add missing MODULE_DEVICE_TABLE

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.

---
 drivers/power/reset/regulator-poweroff.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/reset/regulator-poweroff.c +1 -0
index f697088..2070120 100644
@@ -64,6 +64,7 @@ static const struct of_device_id of_regulator_poweroff_match[] = {
 	{ .compatible = "regulator-poweroff", },
 	{},
 };
+MODULE_DEVICE_TABLE(of, of_regulator_poweroff_match);
 
 static struct platform_driver regulator_poweroff_driver = {
 	.probe = regulator_poweroff_probe,
Signature · 1 line
2.6.2