ARM: 7545/1: cache-l2x0: make outer_cache_fns a field of l2x0_of_data
authorGregory CLEMENT <[email protected]>
Mon, 1 Oct 2012 09:56:42 +0000 (10:56 +0100)
committerRussell King <[email protected]>
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 <[email protected]>
Tested-and-Reviewed-by: Lior Amsalem <[email protected]>
Signed-off-by: Gregory CLEMENT <[email protected]>
Signed-off-by: Russell King <[email protected]>
arch/arm/mm/cache-l2x0.c