aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-sa1100/generic.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-02-03 13:16:45 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-02-09 10:34:12 -0500
commit80ea2065e186d8d69b617770ae7fe51dfea6ba90 (patch)
tree9914b813d28db74d5843d8328d9db4d4aa05de08 /arch/arm/mach-sa1100/generic.c
parentf3bb3d7422b4161df31e2fd2e503897926d8ffe7 (diff)
ARM: sa11x0: fix section mismatch warnings
Neponset calls sa1110_mb_disable() from __devinit code, but sa1110_mb_disable() is marked __init, and so causes a section mismatch warning. As sa1110_mb_enable() and sa1110_mb_disable() need to be callable from suspend/resume paths as well, they must not be marked __init or __devinit. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-sa1100/generic.c')
-rw-r--r--arch/arm/mach-sa1100/generic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-sa1100/generic.c b/arch/arm/mach-sa1100/generic.c
index bb10ee2cb89f..0e356bb89fb7 100644
--- a/arch/arm/mach-sa1100/generic.c
+++ b/arch/arm/mach-sa1100/generic.c
@@ -428,7 +428,7 @@ void __init sa1100_map_io(void)
428 * the MBGNT signal false to ensure the SA1111 doesn't own the 428 * the MBGNT signal false to ensure the SA1111 doesn't own the
429 * SDRAM bus. 429 * SDRAM bus.
430 */ 430 */
431void __init sa1110_mb_disable(void) 431void sa1110_mb_disable(void)
432{ 432{
433 unsigned long flags; 433 unsigned long flags;
434 434
@@ -447,7 +447,7 @@ void __init sa1110_mb_disable(void)
447 * If the system is going to use the SA-1111 DMA engines, set up 447 * If the system is going to use the SA-1111 DMA engines, set up
448 * the memory bus request/grant pins. 448 * the memory bus request/grant pins.
449 */ 449 */
450void __devinit sa1110_mb_enable(void) 450void sa1110_mb_enable(void)
451{ 451{
452 unsigned long flags; 452 unsigned long flags;
453 453