aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/vs6624.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2013-05-02 10:11:50 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-05-21 06:50:56 -0400
commit95323361e5313733a54771c5059f5b352adbf32c (patch)
tree9731320d716278f03171002ee6c98d6d2948af6e /drivers/media/i2c/vs6624.c
parentc7e3cc3ca1ff2fe1aeffd2ba642548d79f9a73dc (diff)
[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,
805 if (ce == NULL) 805 if (ce == NULL)
806 return -EINVAL; 806 return -EINVAL;
807 807
808 ret = gpio_request(*ce, "VS6624 Chip Enable"); 808 ret = gpio_request_one(*ce, GPIOF_OUT_INIT_HIGH, "VS6624 Chip Enable");
809 if (ret) { 809 if (ret) {
810 v4l_err(client, "failed to request GPIO %d\n", *ce); 810 v4l_err(client, "failed to request GPIO %d\n", *ce);
811 return ret; 811 return ret;
812 } 812 }
813 gpio_direction_output(*ce, 1);
814 /* wait 100ms before any further i2c writes are performed */ 813 /* wait 100ms before any further i2c writes are performed */
815 mdelay(100); 814 mdelay(100);
816 815