[media] ov2640: print error if devm_*_optional*() fails
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 19 Apr 2017 12:58:22 +0000 (09:58 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 25 Apr 2017 10:08:21 +0000 (07:08 -0300)
commit3622d3e77ecef090b5111e3c5423313f11711dfa
tree766d16bfdf2a61b193bd381bec7a2aae6cecbc4c
parent9eb9db3a0f92b75ec710066202e0b2accb45afa9
[media] ov2640: print error if devm_*_optional*() fails

devm_gpiod_get_optional() can return -ENOSYS if GPIOLIB is
disabled, causing probe to fail. Warn the user if this
happens.

Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/ov2640.c