clk: samsung: fix cpu clock's flags checking
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 28 Aug 2015 11:49:35 +0000 (13:49 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 22 Sep 2015 16:53:51 +0000 (09:53 -0700)
commit9e294bf88a583825a413df408b9fe9e658fb93ac
tree5611f92b4992251c8ab615a4fa3e935dfae8b18a
parentd34e210ed3a28050441f15228fd5ed929028d9cd
clk: samsung: fix cpu clock's flags checking

CLK_CPU_HAS_DIV1 and CLK_CPU_NEEDS_DEBUG_ALT_DIV masks were
incorrectly used as a bit numbers.  Fix it.

Tested on Exynos4210 based Origen board and on Exynos5250 based
Arndale board.

Cc: Tomasz Figa <tomasz.figa@gmail.com>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Thomas Abraham <thomas.ab@samsung.com>
Fixes: ddeac8d96 ("clk: samsung: add infrastructure to register cpu clocks")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Javier Martinez Canillas <javier@dowhile0.org>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/samsung/clk-cpu.c