From: Laurent Pinchart Date: Wed, 26 Mar 2014 02:24:02 +0000 (-0300) Subject: [media] adv7604: Set HPD GPIO direction to output X-Git-Tag: firefly_0821_release~176^2~3820^2~7^3~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9b2c38239dcd21d9eed1a49a486d8779c915d277;p=firefly-linux-kernel-4.4.55.git [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 --- 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); }