]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 12 Dec 2013 18:59:57 +0000 (19:59 +0100)
commit776d6e03277942d7b44df6ef8ae8421fef12f8e2
treec0414eb7c730cd7ff3b3034a36bbd4aa0b8eba3e
parent62ee892a88a7adb55b9fbf61a19d7fafb9152a6b
gpio: msm: Fix irq mask/unmask by writing bits instead of numbers

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.

Cc: stable@vger.kernel.org
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-msm-v2.c