]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: l2c: omap2: avoid reading directly from the L2 registers in platform code
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 5 Apr 2014 09:57:44 +0000 (10:57 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 22 May 2014 15:41:33 +0000 (16:41 +0100)
commit4e4bb5c72f6bfe872abeb5336ff26834aba1bce8
treee33b74423c8604993bdfdbc23d0da68ddd0aa509
parent00d5e6939d399958017a70bbbb7f02a33cfad7a0
ARM: l2c: omap2: avoid reading directly from the L2 registers in platform code

Avoid reading directly from the L2 registers in platform code.  The L2
code will have already saved the register values itself into the
l2x0_saved_regs structure, so platform code should just move these
values to where they're required.

This is safe because the L2x0 will have been initialised by an early
initcall, whereas the OMAP4 PM code is initialised late.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-omap2/omap-mpuss-lowpower.c