Arnd Bergmann 54c09889bf ARM: pxa: remove incorrect __init annotation on pxa27x_set_pwrmode
The z2 machine calls pxa27x_set_pwrmode() in order to power off
the machine, but this function gets discarded early at boot because
it is marked __init, as pointed out by kbuild:

WARNING: vmlinux.o(.text+0x145c4): Section mismatch in reference from the function z2_power_off() to the function .init.text:pxa27x_set_pwrmode()
The function z2_power_off() references
the function __init pxa27x_set_pwrmode().
This is often because z2_power_off lacks a __init
annotation or the annotation of pxa27x_set_pwrmode is wrong.

This removes the __init section modifier to fix rebooting and the
build error.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: ba4a90a6d86a ("ARM: pxa/z2: fix building error of pxa27x_cpu_suspend() no longer available")
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
2015-10-16 20:52:39 +02:00
..
2013-12-11 17:32:41 -08:00
2012-12-24 09:36:38 -07:00
2012-12-24 09:36:38 -07:00
2012-12-24 09:36:38 -07:00
2015-06-26 11:34:35 -07:00
2015-10-05 22:25:09 +02:00
2012-12-24 09:36:38 -07:00
2012-12-24 09:36:38 -07:00
2015-03-04 23:32:26 -05:00
2015-07-28 13:58:13 +02:00
2015-06-26 11:34:35 -07:00
2012-12-24 09:36:38 -07:00
2014-12-14 16:10:09 -08:00
2013-04-11 10:00:05 +08:00
2012-12-24 09:36:38 -07:00
2015-07-18 12:16:43 +02:00
2015-07-18 12:16:42 +02:00
2015-06-26 11:34:35 -07:00
2015-10-14 23:06:49 +02:00
2012-12-24 09:36:38 -07:00
2015-10-14 23:06:51 +02:00
2015-08-06 10:11:36 +02:00