Skip to content

Commit 4465b3a

Browse files
SamuelZOUsre
authored andcommitted
power: reset: regulator-poweroff: 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]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 2fc6d0e commit 4465b3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/power/reset/regulator-poweroff.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ static const struct of_device_id of_regulator_poweroff_match[] = {
6464
{ .compatible = "regulator-poweroff", },
6565
{},
6666
};
67+
MODULE_DEVICE_TABLE(of, of_regulator_poweroff_match);
6768

6869
static struct platform_driver regulator_poweroff_driver = {
6970
.probe = regulator_poweroff_probe,

0 commit comments

Comments
 (0)