Skip to content

Commit d46b3f5

Browse files
Shawn Guodtor
authored andcommitted
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>
1 parent dcd6a66 commit d46b3f5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎kernel/reboot.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ EXPORT_SYMBOL(cad_pid);
3232
#define DEFAULT_REBOOT_MODE
3333
#endif
3434
enum reboot_mode reboot_mode DEFAULT_REBOOT_MODE;
35+
EXPORT_SYMBOL_GPL(reboot_mode);
3536
enum reboot_mode panic_reboot_mode = REBOOT_UNDEFINED;
3637

3738
/*

0 commit comments

Comments
 (0)