diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2021-10-17 07:27:37 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2021-10-17 07:31:06 +0300 |
commit | d46b3f5bc0fc265b7ef013e76d7d43f85e4b1e7c (patch) | |
tree | 4f2ed9b1502b27e2bfc90290b5d51962c0b7341e /kernel/reboot.c | |
parent | dcd6a66a23e97e999e8ccededb6256863d288379 (diff) | |
download | linux-d46b3f5bc0fc265b7ef013e76d7d43f85e4b1e7c.tar.xz |
reboot: export symbol 'reboot_mode'
Some drivers like Qualcomm pm8941-pwrkey need to access 'reboot_mode'
for triggering reboot between cold and warm mode. Export the symbol, so
that drivers built as module can still access the symbol.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Link: https://lore.kernel.org/r/20210714095850.27185-2-shawn.guo@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'kernel/reboot.c')
-rw-r--r-- | kernel/reboot.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/reboot.c b/kernel/reboot.c index a6ad5eb2fa73..31bf2611ee12 100644 --- a/kernel/reboot.c +++ b/kernel/reboot.c @@ -32,6 +32,7 @@ EXPORT_SYMBOL(cad_pid); #define DEFAULT_REBOOT_MODE #endif enum reboot_mode reboot_mode DEFAULT_REBOOT_MODE; +EXPORT_SYMBOL_GPL(reboot_mode); enum reboot_mode panic_reboot_mode = REBOOT_UNDEFINED; /* |