From: James Hogan Date: Tue, 15 Jan 2013 10:28:05 +0000 (+0000) Subject: clk-divider: fix macros X-Git-Tag: v3.9-rc1~149^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a3cd18475a98b9587a181b8d8ebc7f5cdedb4b0;p=pandora-kernel.git clk-divider: fix macros The macro is_power_of_two() in clk-divider.c was defined as !(i & ~i) which is always true. Instead use is_power_of_2() from log2.h. Also add brackets around the macro arguments in div_mask to avoid any future operator precedence problems. Signed-off-by: James Hogan Cc: Joe Perches Signed-off-by: Mike Turquette [mturquette@linaro.org: use log2.h per Joe Perches; update changelog] --- Reading git-diff-tree failed