Skip to content

Commit ed3443f

Browse files
Bixuan Cuisre
authored andcommitted
power: reset: gpio-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: Bixuan Cui <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent f3076cd commit ed3443f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/power/reset/gpio-poweroff.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ static const struct of_device_id of_gpio_poweroff_match[] = {
9090
{ .compatible = "gpio-poweroff", },
9191
{},
9292
};
93+
MODULE_DEVICE_TABLE(of, of_gpio_poweroff_match);
9394

9495
static struct platform_driver gpio_poweroff_driver = {
9596
.probe = gpio_poweroff_probe,

0 commit comments

Comments
 (0)