summaryrefslogtreecommitdiffstats
path: root/sound/soc/rockchip
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-11-20 10:32:44 +0100
committerMark Brown <broonie@kernel.org>2015-11-20 18:05:16 +0000
commitd1afdf34fc17bd2e1c96dc6196c562fa8906a026 (patch)
tree2679d067cafc6beb1f19932451d0edf2005131c0 /sound/soc/rockchip
parent8005c49d9aea74d382f474ce11afbbc7d7130bec (diff)
downloadlinux-stable-d1afdf34fc17bd2e1c96dc6196c562fa8906a026.tar.gz
linux-stable-d1afdf34fc17bd2e1c96dc6196c562fa8906a026.tar.bz2
linux-stable-d1afdf34fc17bd2e1c96dc6196c562fa8906a026.zip
ASoC: pxa: remove incorrect do_div() call
The new optimized do_div implementation (now in asm-generic/next) exposes a glitch in the brownstone audio driver by producing a compile-time warning: sound/soc/pxa/brownstone.c: In function 'brownstone_wm8994_hw_params': sound/soc/pxa/brownstone.c:67:85: warning: comparison of distinct pointer types lacks a cast sound/soc/pxa/brownstone.c:67:10125: warning: right shift count >= width of type [-Wshift-count-overflow] sound/soc/pxa/brownstone.c:67:10254: warning: passing argument 1 of '__div64_32' from incompatible pointer type [-Wincompatible-pointer-types] The driver just divides two plain integer values, so it should not use do_div to start with, but has apparently done so ever since the code was first merged. This replaces do_div with a simple division operator. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/rockchip')
0 files changed, 0 insertions, 0 deletions