[media] mt9p031: Use gpio_is_valid()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 2 May 2013 10:57:51 +0000 (07:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 21 May 2013 10:49:35 +0000 (07:49 -0300)
commit2660a22b55ae9a01c1e1117e9d514427834704bc
treec7916dc615e236732afe6d7363a8cd914fbd8489
parentbbcc9fa0afe4f8a36e8777e14f7b016090605306
[media] mt9p031: Use gpio_is_valid()

Replace the manual validity checks for the reset GPIO with the
gpio_is_valid() function.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/mt9p031.c