]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: omap2_get_clksel(): fix suspicious assignment
authorPaul Walmsley <paul@pwsan.com>
Wed, 2 May 2007 17:32:32 +0000 (17:32 +0000)
committerTony Lindgren <tony@atomide.com>
Wed, 2 May 2007 18:34:20 +0000 (18:34 +0000)
mach-omap2/clock.c contains a suspicious assignment that
almost certainly should be a equality test, in omap2_get_clksel().

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock.c

index 03065074f8084373852a8e1faff97b2b363656ee..f19e2387e20171446d63a4db7c0e2b0a69a6d949 100644 (file)
@@ -651,7 +651,7 @@ static u32 omap2_get_clksel(u32 *div_sel, u32 *field_mask,
                break;
        case CM_SYSCLKOUT_SEL1:
                div_addr = (u32)&PRCM_CLKOUT_CTRL;
-               if ((div_off == 3) || (div_off = 11))
+               if ((div_off == 3) || (div_off == 11))
                        mask= 0x3;
                break;
        case CM_CORE_SEL1: