From f3e991d418c7ee2890b1956c32f8b31639249ade Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Fri, 23 Jan 2015 12:52:21 -0300 Subject: [PATCH] [media] adv7180: Pass correct flags to request_threaded_irq() Most IRQ controllers support different types of interrupts. The adv7180 generates falling edge interrupts, so make sure to pass IRQF_TRIGGER_FALLING to request_threaded_irq() so the IRQ controller is configured for the correct mode. Signed-off-by: Lars-Peter Clausen Acked-by: Federico Vaga Acked-by: Hans Verkuil Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- drivers/media/i2c/adv7180.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c index 7666d10d3f16..15deaad1c6eb 100644 --- a/drivers/media/i2c/adv7180.c +++ b/drivers/media/i2c/adv7180.c @@ -630,7 +630,8 @@ static int adv7180_probe(struct i2c_client *client, if (state->irq) { ret = request_threaded_irq(client->irq, NULL, adv7180_irq, - IRQF_ONESHOT, KBUILD_MODNAME, state); + IRQF_ONESHOT | IRQF_TRIGGER_FALLING, + KBUILD_MODNAME, state); if (ret) goto err_free_ctrl; } -- 2.20.1