]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: l2c: clean up OF initialisation a bit
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 15 Mar 2014 16:47:52 +0000 (16:47 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 22 May 2014 15:39:14 +0000 (16:39 +0100)
commit6c9a4ccebf15c153ad98ada85a163cdb65e4b681
tree7f6c055db875a4bcbce6a260a443e54856d9709f
parent62300ac6b5a2e8823fc9a64d65a025445362fcb7
ARM: l2c: clean up OF initialisation a bit

Rather than having a boolean and other tricks to disable some bits of
l2x0_init(), split this function into two parts: a common part shared
between OF and non-OF, and the non-OF part.

The common part can take a block of function pointers, and the cache
ID (to cope with Aurora's DT specified ID.)  Eliminate the redundant
setting of l2x0_base in the OF case, moving it to the non-OF init
function.

This allows us to localise the OF-specific initialisation handling
from the non-OF handling.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/cache-l2x0.c