Skip to content

Commit

Permalink
arch: unicore32: ksyms: export 'pm_power_off' to avoid compiling fail…
Browse files Browse the repository at this point in the history
…ure.

Two driver modules need 'pm_power_off', so export it.

The related error (with allmodconfig under unicore32):

    MODPOST 4039 modules
  ERROR: "pm_power_off" [drivers/mfd/retu-mfd.ko] undefined!
  ERROR: "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined!

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Acked-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
Signed-off-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
  • Loading branch information
Chen Gang authored and Guan Xuetao committed Jun 20, 2014
1 parent 40ad2a6 commit 3420d49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/unicore32/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ void machine_halt(void)
* Function pointers to optional machine specific functions
*/
void (*pm_power_off)(void) = NULL;
EXPORT_SYMBOL(pm_power_off);

void machine_power_off(void)
{
Expand Down

0 comments on commit 3420d49

Please sign in to comment.