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>
This commit is contained in:
parent
98ad54beb5
commit
6b02d06feb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue