From 9b2c38239dcd21d9eed1a49a486d8779c915d277 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 25 Mar 2014 23:24:02 -0300 Subject: [PATCH] [media] adv7604: Set HPD GPIO direction to output The HPD GPIO is used as an output but its direction is never set. Fix it. Signed-off-by: Laurent Pinchart Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- drivers/media/i2c/adv7604.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index 1493de6c246f..1a2797bfd12e 100644 --- a/drivers/media/i2c/adv7604.c +++ b/drivers/media/i2c/adv7604.c @@ -2797,7 +2797,7 @@ static int adv7604_probe(struct i2c_client *client, if (IS_ERR(state->hpd_gpio[i])) continue; - gpiod_set_value_cansleep(state->hpd_gpio[i], 0); + gpiod_direction_output(state->hpd_gpio[i], 0); v4l_info(client, "Handling HPD %u GPIO\n", i); } -- 2.34.1