OSDN Git Service

gpio: brcmstb: allow all instances to be wakeup sources
authorDoug Berger <opendmb@gmail.com>
Tue, 24 Oct 2017 19:54:46 +0000 (12:54 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 31 Oct 2017 09:27:59 +0000 (10:27 +0100)
commit0752df6611f1783d71394a4987d3c134c9ba3fdd
tree9b078f340cef9d8ea55ce642f7bdde4b06be6c2e
parent5ac9d2df5bdd7c4e58700ad42aa7c9356bbf154d
gpio: brcmstb: allow all instances to be wakeup sources

This commit allows a wakeup parent interrupt to be shared between
instances.

It also removes the redundant can_wake member of the private data
structure by using whether the parent_wake_irq has been defined to
indicate that the GPIO device can wake.

Fixes: 19a7b6940b78 ("gpio: brcmstb: Add interrupt and wakeup source support")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Gregory Fong <gregory.0xf0@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-brcmstb.c