]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3b81650db3020111b9b7ca1ab4a09d2fc2484f7f
treedb1dbb8bd536cba68672b8ca13f75d02b9f5db8a
parent1347743ab85deacc11378ae9a8eddeeaf6e10b63
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