diff options
author | Robert Karszniewicz <r.karszniewicz@phytec.de> | 2020-11-20 18:51:24 +0100 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2020-12-01 08:09:01 +0800 |
commit | 70e734fed740939704d1b3b76d6f2e6909698586 (patch) | |
tree | f908550d90f5ee5df08d94e1b8576748a28c6e83 /arch/arm/mach-imx | |
parent | 33d0d843872c5ddbe28457a92fc6f2487315fb9f (diff) | |
download | linux-70e734fed740939704d1b3b76d6f2e6909698586.tar.bz2 |
ARM: imx: Use correct SRC base address
Commit 4a4fb66119eb ("ARM: imx: Add missing of_node_put()") accidentally
forgot to rename a variable, which caused the wrong address to be used
and, in our case, the ULL getting falsely identified as ULZ.
Fixes: 4a4fb66119eb ("ARM: imx: Add missing of_node_put()")
Signed-off-by: Robert Karszniewicz <r.karszniewicz@phytec.de>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/anatop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/anatop.c b/arch/arm/mach-imx/anatop.c index d841bed8664d..7bb47eb3fc07 100644 --- a/arch/arm/mach-imx/anatop.c +++ b/arch/arm/mach-imx/anatop.c @@ -136,7 +136,7 @@ void __init imx_init_revision_from_anatop(void) src_np = of_find_compatible_node(NULL, NULL, "fsl,imx6ul-src"); - src_base = of_iomap(np, 0); + src_base = of_iomap(src_np, 0); of_node_put(src_np); WARN_ON(!src_base); sbmr2 = readl_relaxed(src_base + SRC_SBMR2); |