Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <hulkci@huawei.com>
Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Bixuan Cui and committed by
Sebastian Reichel
ed3443fb f3076cd8

+1
+1
drivers/power/reset/gpio-poweroff.c
··· 90 90 { .compatible = "gpio-poweroff", }, 91 91 {}, 92 92 }; 93 + MODULE_DEVICE_TABLE(of, of_gpio_poweroff_match); 93 94 94 95 static struct platform_driver gpio_poweroff_driver = { 95 96 .probe = gpio_poweroff_probe,