From: Axel Lin Date: Wed, 9 Apr 2014 13:19:54 +0000 (+0800) Subject: pwm: ab8500: Fix wrong value shift for disable/enable PWM X-Git-Tag: omap-for-v3.16/fixes-against-rc1~51^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54b02347d71802a010ceace3dd25ed3774ba8a1e;p=pandora-kernel.git pwm: ab8500: Fix wrong value shift for disable/enable PWM Current code only works when pdev->id is 1. Fix it by passing correct bit values to abx500_mask_and_set_register_interruptible(). Having DISABLE_PWM/ENABLE_PWM does not make the code more readable because the bit values depend on pdev->id. Thus drop the DISABLE_PWM and ENABLE_PWM defines. This patch also removes an unnecessary return in ab8500_pwm_disable(). Signed-off-by: Axel Lin Acked-by: Linus Walleij Acked-by: Alexandre BOURDIOL Acked-by: Philippe Begnic Signed-off-by: Thierry Reding --- Reading git-diff-tree failed