gpio: msm: Fix irq mask/unmask by writing bits instead of numbers
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 10 Dec 2013 23:19:03 +0000 (15:19 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 20:24:24 +0000 (12:24 -0800)
commitdb74f02285dc0a6f649d7f44e97e1219af22ed76
treea5aee8adfc8cb24db4680f2b821546edc0f37179
parentd459f7e344ccdbdcba68192710642f90297de5b4
gpio: msm: Fix irq mask/unmask by writing bits instead of numbers

commit 4cc629b7a20945ce35628179180329b6bc9e552b upstream.

We should be writing bits here but instead we're writing the
numbers that correspond to the bits we want to write. Fix it by
wrapping the numbers in the BIT() macro. This fixes gpios acting
as interrupts.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpio-msm-v2.c