upstream: [media] mt9p031: Use gpio_is_valid()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 2 May 2013 10:57:51 +0000 (07:57 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:55 +0000 (11:47 +0900)
commit92cfa0116df8ea275faf104cfb14669403c6dc9e
tree1c4f878ac7e5482e4f8167d8920326de786c3fe8
parentab7d78a8ce3eac85a79407701dd18ab5fafce680
upstream: [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