summaryrefslogtreecommitdiff
path: root/arch/m68k
diff options
context:
space:
mode:
authorVasili Galka <vvv444@gmail.com>2014-06-30 12:59:06 +0300
committerTom Rini <trini@ti.com>2014-07-07 19:47:07 -0400
commit6b02d06feb18d27dfd9e2122009967c1d30bfdb6 (patch)
tree1df9771c92d501d96ddbe28fee98e440802c1e66 /arch/m68k
parent98ad54beb5baf9cb66c6440a2ca132bd1032d2e3 (diff)
downloadu-boot-imx-6b02d06feb18d27dfd9e2122009967c1d30bfdb6.zip
u-boot-imx-6b02d06feb18d27dfd9e2122009967c1d30bfdb6.tar.gz
u-boot-imx-6b02d06feb18d27dfd9e2122009967c1d30bfdb6.tar.bz2
m68k: Fix bug, "address of" operator was forgotten
in_be16() shall be passed a pointer to register and not its value. This is clearly a typo resulting in a wrong memory access, so fix it. Cc: Alison Wang <b18965@freescale.com>, Jason Jin <Jason.jin@freescale.com> Signed-off-by: Vasili Galka <vvv444@gmail.com>
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/cpu/mcf5445x/speed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/cpu/mcf5445x/speed.c b/arch/m68k/cpu/mcf5445x/speed.c
index 07a9b35..4e363a4 100644
--- a/arch/m68k/cpu/mcf5445x/speed.c
+++ b/arch/m68k/cpu/mcf5445x/speed.c
@@ -115,7 +115,7 @@ void setup_5441x_clocks(void)
gd->cpu_clk = vco / temp; /* cpu clock */
gd->arch.flb_clk = vco / temp; /* FlexBus clock */
gd->arch.flb_clk >>= 1;
- if (in_be16(ccm->misccr2) & 2) /* fsys/4 */
+ if (in_be16(&ccm->misccr2) & 2) /* fsys/4 */
gd->arch.flb_clk >>= 1;
temp = ((pdr & PLL_DR_OUTDIV2_BITS) >> 5) + 1;