power: reset: add missing MODULE_DEVICE_TABLE
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.
Reported-by Hulk Robot <[email protected]>
Signed-off-by Zou Wei <[email protected]>
--- drivers/power/reset/regulator-poweroff.c | 1 + 1 file changed, 1 insertion(+)
drivers/power/reset/regulator-poweroff.c +1 -0
@@ -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