Fix a typo when checking level trigger irq type. Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx> --- Hi Hongzhou, This looks like a typo, but I don't have the datasheet so please confirm if this patch is correct or not. drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c index 493294c..cc27929 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c @@ -934,7 +934,7 @@ static int mtk_eint_set_type(struct irq_data *d, else pctl->eint_dual_edges[d->hwirq] = 0; - if (type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_EDGE_FALLING)) { + if (type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH)) { reg = mtk_eint_get_offset(pctl, d->hwirq, eint_offsets->pol_clr); writel(mask, reg); -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html