diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2016-06-18 18:09:31 -0700 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2016-06-21 20:40:47 +0800 |
commit | 510aca642040cfb05e392218f6540ea35af51916 (patch) | |
tree | bf4b1a9670ba0437c83e0703b5a93fe9140f4367 /arch/arm/mach-imx/system.c | |
parent | 1d9e94779956b765d316924cc39af2165ad631fb (diff) | |
download | linux-510aca642040cfb05e392218f6540ea35af51916.tar.gz linux-510aca642040cfb05e392218f6540ea35af51916.tar.bz2 linux-510aca642040cfb05e392218f6540ea35af51916.zip |
ARM: i.MX: Do not explicitly call l2x0_of_init()
There's no need to explicitly call l2x0_of_init() since it will be
called as a part of init_IRQ() (see arch/arm/kernel/irq.c for
details). This way we can simplify imx_init_l2cache() and ditch the call
to it on i.MX35 (which does not claim compatibility with
"arm,pl310-cache") alltogether.
Acked-by: Arnd Bergmann <arnd@arndb.de>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx/system.c')
-rw-r--r-- | arch/arm/mach-imx/system.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/arm/mach-imx/system.c b/arch/arm/mach-imx/system.c index bf7ab779d5bf..e442ed7f7ff5 100644 --- a/arch/arm/mach-imx/system.c +++ b/arch/arm/mach-imx/system.c @@ -98,13 +98,11 @@ void __init imx_init_l2cache(void) np = of_find_compatible_node(NULL, NULL, "arm,pl310-cache"); if (!np) - goto out; + return; l2x0_base = of_iomap(np, 0); - if (!l2x0_base) { - of_node_put(np); - goto out; - } + if (!l2x0_base) + goto put_node; if (!(readl_relaxed(l2x0_base + L2X0_CTRL) & L2X0_CTRL_EN)) { /* Configure the L2 PREFETCH and POWER registers */ @@ -121,9 +119,7 @@ void __init imx_init_l2cache(void) } iounmap(l2x0_base); +put_node: of_node_put(np); - -out: - l2x0_of_init(0, ~0); } #endif |