Commit d2d24ad1 authored by Stephen Boyd's avatar Stephen Boyd Committed by Lee Jones

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: default avatarJosh Cartwright <joshc@codeaurora.org>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 2802c94c
...@@ -247,18 +247,12 @@ static int pm8xxx_irq_set_type(struct irq_data *d, unsigned int flow_type) ...@@ -247,18 +247,12 @@ static int pm8xxx_irq_set_type(struct irq_data *d, unsigned int flow_type)
return pm8xxx_config_irq(chip, block, config); return pm8xxx_config_irq(chip, block, config);
} }
static int pm8xxx_irq_set_wake(struct irq_data *d, unsigned int on)
{
return 0;
}
static struct irq_chip pm8xxx_irq_chip = { static struct irq_chip pm8xxx_irq_chip = {
.name = "pm8xxx", .name = "pm8xxx",
.irq_mask_ack = pm8xxx_irq_mask_ack, .irq_mask_ack = pm8xxx_irq_mask_ack,
.irq_unmask = pm8xxx_irq_unmask, .irq_unmask = pm8xxx_irq_unmask,
.irq_set_type = pm8xxx_irq_set_type, .irq_set_type = pm8xxx_irq_set_type,
.irq_set_wake = pm8xxx_irq_set_wake, .flags = IRQCHIP_MASK_ON_SUSPEND | IRQCHIP_SKIP_SET_WAKE,
.flags = IRQCHIP_MASK_ON_SUSPEND,
}; };
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment