pinctrl: msm: drop wake_irqs bitmap
authorJosh Cartwright <joshc@codeaurora.org>
Wed, 5 Mar 2014 19:33:08 +0000 (13:33 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 12 Mar 2014 13:54:28 +0000 (14:54 +0100)
commit6aced33f4974ab240971fdb5e42d7bebacd8ee45
treeaccc658912cb2376be713779ff800f77ce017b67
parent42bd00706ce95d74ad6ebcb8528ee1fbbb992f6a
pinctrl: msm: drop wake_irqs bitmap

Currently, the wake_irqs bitmap is used to track whether there are any
gpio's which are configured as wake irqs, and uses this to determine
whether or not to call enable_irq_wake()/disable_irq_wake() on the
summary interrupt.

However, the genirq core already handles this case, by maintaining a
'wake_count' per irq_desc, and only calling into the controlling
irq_chip when wake_count transitions 0 <-> 1.

Drop this bitmap, and unconditionally call irq_set_irq_wake() on the
summary interrupt.

Signed-off-by: Josh Cartwright <joshc@codeaurora.org>
Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-msm.c