diff --git a/drivers/power/mmi_qc3p_wt6670f/wt6670f_qc3p.c b/drivers/power/mmi_qc3p_wt6670f/wt6670f_qc3p.c index a2fca414350a..2fe17ce4c230 100644 --- a/drivers/power/mmi_qc3p_wt6670f/wt6670f_qc3p.c +++ b/drivers/power/mmi_qc3p_wt6670f/wt6670f_qc3p.c @@ -430,6 +430,7 @@ static int wt6670f_parse_dt(struct device *dev) else pr_info("%s: wt6670f-int-gpio = %d\n", __func__,wt6670f_int_pin); gpio_request(wt6670f_int_pin,"wt6670f_int"); + gpio_direction_input(wt6670f_int_pin); //configure to input mode ret = request_irq(gpio_to_irq(wt6670f_int_pin), wt6670f_intr_handler, IRQF_TRIGGER_FALLING | IRQF_ONESHOT, "wt6670f int", dev);