]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sh_mmcif: simplify clock divisor calculation
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 23 Nov 2011 14:52:30 +0000 (15:52 +0100)
committerChris Ball <cjb@laptop.org>
Thu, 1 Dec 2011 18:59:40 +0000 (13:59 -0500)
commite9679e3e5d88e42a45bc54e7ff206008b3673bf9
tree9959571bb5925e168ce8a7bc0c8306c1985c5d51
parentc78b6eadfa44ee4351eb88496b217edc0fb18025
mmc: sh_mmcif: simplify clock divisor calculation

Replace ilog2(__rounddown_pow_of_two(x)) with the equivalent but much
simpler fls(x) - 1.

Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sh_mmcif.c