media: st-mipid02: add a check for devm_gpiod_get_optional
authorChuhong Yuan <hslester96@gmail.com>
Fri, 18 Oct 2019 01:46:56 +0000 (22:46 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 24 Oct 2019 21:48:35 +0000 (18:48 -0300)
commit61c03b631b74a38ab53753f3ee971a55886d4843
tree9c0c44727365b74a1be3058b85bfebf133275b12
parent828dbc299278065b634e913d2700d254a3224853
media: st-mipid02: add a check for devm_gpiod_get_optional

mipid02_probe misses a check for devm_gpiod_get_optional and may miss
the failure.
Add a check to fix the problem.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/st-mipid02.c