From: Russell King Date: Sat, 15 Mar 2014 16:47:52 +0000 (+0000) Subject: ARM: l2c: clean up OF initialisation a bit X-Git-Tag: omap-for-v3.16/fixes-against-rc1~91^2~13^2~1^3~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96054b0a99f4b7104c02e5521ee5c0d7b1fb09bc;p=pandora-kernel.git 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 --- Reading git-diff-tree failed