aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/vs6624.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2013-05-02 11:11:50 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-05-21 07:50:56 -0300
commit95323361e5313733a54771c5059f5b352adbf32c (patch)
tree9731320d716278f03171002ee6c98d6d2948af6e /drivers/media/i2c/vs6624.c
parent[media] tvp514x: Fix double free (diff)
downloadlinux-dev-95323361e5313733a54771c5059f5b352adbf32c.tar.xz
linux-dev-95323361e5313733a54771c5059f5b352adbf32c.zip
[media] media: i2c: Convert to gpio_request_one()
Replace gpio_request() with gpio_request_one() and remove the associated gpio_direction_output() calls. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/i2c/vs6624.c')
-rw-r--r--drivers/media/i2c/vs6624.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/i2c/vs6624.c b/drivers/media/i2c/vs6624.c
index f366fad6269e..6b8c0b7aa488 100644
--- a/drivers/media/i2c/vs6624.c
+++ b/drivers/media/i2c/vs6624.c
@@ -805,12 +805,11 @@ static int vs6624_probe(struct i2c_client *client,
if (ce == NULL)
return -EINVAL;
- ret = gpio_request(*ce, "VS6624 Chip Enable");
+ ret = gpio_request_one(*ce, GPIOF_OUT_INIT_HIGH, "VS6624 Chip Enable");
if (ret) {
v4l_err(client, "failed to request GPIO %d\n", *ce);
return ret;
}
- gpio_direction_output(*ce, 1);
/* wait 100ms before any further i2c writes are performed */
mdelay(100);