Skip to content

Commit d46b3f5

Browse files
shawnguo2dtor
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent dcd6a66 commit d46b3f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)