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

power: reset: restart-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
e318c3c2 2d54a222

+1
+1
drivers/power/reset/restart-poweroff.c
··· 45 45 { .compatible = "restart-poweroff", }, 46 46 {}, 47 47 }; 48 + MODULE_DEVICE_TABLE(of, of_restart_poweroff_match); 48 49 49 50 static struct platform_driver restart_poweroff_driver = { 50 51 .probe = restart_poweroff_probe,