diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2014-03-04 13:48:52 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-03-19 04:58:37 -0400 |
commit | d2d24ad1c415c68a2d96dedae74421228025c899 (patch) | |
tree | 76b33b6b59276d3f69d88ca43b1fa26b431ddcff /drivers/mfd | |
parent | 2802c94c3981ce3024ff8b3526b8b2ff26351923 (diff) |
mfd: pm8921: Use IRQCHIP_SKIP_SET_WAKE
We don't need to implement a dummy irq_set_wake op if we just set
IRQCHIP_SKIP_SET_WAKE.
Suggested-by: Josh Cartwright <joshc@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/pm8921-core.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/mfd/pm8921-core.c b/drivers/mfd/pm8921-core.c index 4d486e91b602..1153e8a3a556 100644 --- a/drivers/mfd/pm8921-core.c +++ b/drivers/mfd/pm8921-core.c | |||
@@ -247,18 +247,12 @@ static int pm8xxx_irq_set_type(struct irq_data *d, unsigned int flow_type) | |||
247 | return pm8xxx_config_irq(chip, block, config); | 247 | return pm8xxx_config_irq(chip, block, config); |
248 | } | 248 | } |
249 | 249 | ||
250 | static int pm8xxx_irq_set_wake(struct irq_data *d, unsigned int on) | ||
251 | { | ||
252 | return 0; | ||
253 | } | ||
254 | |||
255 | static struct irq_chip pm8xxx_irq_chip = { | 250 | static struct irq_chip pm8xxx_irq_chip = { |
256 | .name = "pm8xxx", | 251 | .name = "pm8xxx", |
257 | .irq_mask_ack = pm8xxx_irq_mask_ack, | 252 | .irq_mask_ack = pm8xxx_irq_mask_ack, |
258 | .irq_unmask = pm8xxx_irq_unmask, | 253 | .irq_unmask = pm8xxx_irq_unmask, |
259 | .irq_set_type = pm8xxx_irq_set_type, | 254 | .irq_set_type = pm8xxx_irq_set_type, |
260 | .irq_set_wake = pm8xxx_irq_set_wake, | 255 | .flags = IRQCHIP_MASK_ON_SUSPEND | IRQCHIP_SKIP_SET_WAKE, |
261 | .flags = IRQCHIP_MASK_ON_SUSPEND, | ||
262 | }; | 256 | }; |
263 | 257 | ||
264 | /** | 258 | /** |