clk: iproc: fix bit manipulation arithmetic
authorRay Jui <rjui@broadcom.com>
Mon, 29 Jun 2015 21:30:10 +0000 (14:30 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 2 Jul 2015 16:51:09 +0000 (09:51 -0700)
commit69916d96094e1e16567c5f25515a13ed2896c730
tree7b756558d35f725dc8dd31c95c6edd383f07f908
parent45a481c2176f6acca2efb6477c6018b2c3e3c60f
clk: iproc: fix bit manipulation arithmetic

A 32-bit variable should be type casted to 64-bit before arithmetic
operation and assigning it to a 64-bit variable

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ray Jui <rjui@broadcom.com>
Fixes: 5fe225c105fd ("clk: iproc: add initial common clock support")
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/bcm/clk-iproc-pll.c