]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: sa11x0: fix section mismatch warnings
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 3 Feb 2012 18:16:45 +0000 (18:16 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 9 Feb 2012 15:34:12 +0000 (15:34 +0000)
commit5af0d78474489928c0e56dcfa723fcac1724ee1e
tree9914b813d28db74d5843d8328d9db4d4aa05de08
parent91cc0dd6b26f9b01238c57de1cbeb64d44d72be6
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>
arch/arm/common/sa1111.c
arch/arm/mach-sa1100/generic.c