ARM: imx: Use correct SRC base address
authorRobert Karszniewicz <r.karszniewicz@phytec.de>
Fri, 20 Nov 2020 17:51:24 +0000 (18:51 +0100)
committerShawn Guo <shawnguo@kernel.org>
Tue, 1 Dec 2020 00:09:01 +0000 (08:09 +0800)
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>
arch/arm/mach-imx/anatop.c

index d841bed8664d7808c3415a0b83915e690c5a8ec8..7bb47eb3fc07b16fd9b6ae0d114dd21b64e8e747 100644 (file)
@@ -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);