From: Takashi Iwai Date: Wed, 30 Oct 2013 07:35:01 +0000 (+0100) Subject: ASoC: ab8500: Fix invalid cast to long pointer X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~14^2^2~50^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=166a34d27fcad1eeb0322cff23939a1910f8a77c;p=pandora-kernel.git ASoC: ab8500: Fix invalid cast to long pointer Don't cast to long pointers blindly just for using find_first_bit() and co. This is certainly not portable at all. Reimplement the code with ffs() and fls() instead. This is a slight optimization, too. Spotted by coverity CID 1056484 and 1056485. Signed-off-by: Takashi Iwai Signed-off-by: Mark Brown --- Reading git-diff-tree failed