diff options
author | Chen Gang <gang.chen.5i5j@gmail.com> | 2013-11-28 23:01:37 -0500 |
---|---|---|
committer | Richard Kuo <rkuo@codeaurora.org> | 2014-04-04 19:20:00 -0400 |
commit | b1ddb5cc58dda42db21fc3e1c05bb6c28ac4d978 (patch) | |
tree | 8557f753a13701f359d9a9190a2ce5b535053813 /arch/hexagon | |
parent | 07d592b0947316612fde7dafe0e452b56de394e5 (diff) |
arch: hexagon: kernel: reset.c: use function pointer instead of function for pm_power_off and export it
'pm_power_off' is a function pointer, not a function, so need change
its type, and also need export it, or can not pass compiling with
allmodconfig. The related error:
MODPOST 2879 modules
ERROR: "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined!
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
Diffstat (limited to 'arch/hexagon')
-rw-r--r-- | arch/hexagon/kernel/reset.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/hexagon/kernel/reset.c b/arch/hexagon/kernel/reset.c index 6aeabc962b3b..76483c10130d 100644 --- a/arch/hexagon/kernel/reset.c +++ b/arch/hexagon/kernel/reset.c | |||
@@ -33,6 +33,5 @@ void machine_restart(char *cmd) | |||
33 | { | 33 | { |
34 | } | 34 | } |
35 | 35 | ||
36 | void pm_power_off(void) | 36 | void (*pm_power_off)(void) = NULL; |
37 | { | 37 | EXPORT_SYMBOL(pm_power_off); |
38 | } | ||