Commit cbb28f6b authored by Paul Walmsley's avatar Paul Walmsley Committed by Tony Lindgren

ARM: OMAP: omap2_get_clksel(): fix suspicious assignment

mach-omap2/clock.c contains a suspicious assignment that
almost certainly should be a equality test, in omap2_get_clksel().
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 4e4e2776
...@@ -651,7 +651,7 @@ static u32 omap2_get_clksel(u32 *div_sel, u32 *field_mask, ...@@ -651,7 +651,7 @@ static u32 omap2_get_clksel(u32 *div_sel, u32 *field_mask,
break; break;
case CM_SYSCLKOUT_SEL1: case CM_SYSCLKOUT_SEL1:
div_addr = (u32)&PRCM_CLKOUT_CTRL; div_addr = (u32)&PRCM_CLKOUT_CTRL;
if ((div_off == 3) || (div_off = 11)) if ((div_off == 3) || (div_off == 11))
mask= 0x3; mask= 0x3;
break; break;
case CM_CORE_SEL1: case CM_CORE_SEL1:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment