]> git.baikalelectronics.ru Git - kernel.git/commitdiff
arch: unicore32: ksyms: export 'pm_power_off' to avoid compiling failure.
authorChen Gang <gang.chen.5i5j@gmail.com>
Tue, 27 May 2014 00:04:24 +0000 (08:04 +0800)
committerGuan Xuetao <gxt@mprc.pku.edu.cn>
Fri, 20 Jun 2014 00:22:40 +0000 (08:22 +0800)
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>
arch/unicore32/kernel/process.c

index 778ebba808275b68d3d2d1bb8fa6393654aa8147..b008e99614658cfb100dd3be24767e4a60f86a80 100644 (file)
@@ -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)
 {