ARM: 7545/1: cache-l2x0: make outer_cache_fns a field of l2x0_of_data
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Mon, 1 Oct 2012 09:56:42 +0000 (10:56 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 18 Oct 2012 09:57:36 +0000 (10:57 +0100)
commit6248d0602f9932a437070dda598b7973b8770384
treedb1dbb8bd536cba68672b8ca13f75d02b9f5db8a
parentddffeb8c4d0331609ef2581d84de4d763607bd37
ARM: 7545/1: cache-l2x0: make outer_cache_fns a field of l2x0_of_data

Instead of having multiple functions belonging to outer_cache and
filling this structure on the fly, use a outer_cache_fns field inside
l2x0_of_data and just memcopy it into outer_cache depending of the
type of the l2x0 cache. For non DT case, the former code was kept.

[rmk: fixed a style issue]

Tested-and-Reviewed-by: Yehuda Yitschak <yehuday@marvell.com>
Tested-and-Reviewed-by: Lior Amsalem <alior@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/cache-l2x0.c