Message ID | 20210714095850.27185-2-shawn.guo@linaro.org (mailing list archive) |
---|---|
State | Accepted |
Commit | d46b3f5bc0fc265b7ef013e76d7d43f85e4b1e7c |
Headers | show |
Series | Warm reset support for pm8941-pwrkey | expand |
On Wed, Jul 14, 2021 at 05:58:48PM +0800, Shawn Guo wrote: > 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> Applied, thank you.
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; /*
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> --- kernel/reboot.c | 1 + 1 file changed, 1 insertion(+)