]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[media] staging: atomisp: Ignore errors from second gpio in ov2680 driver
authorHans de Goede <hdegoede@redhat.com>
Sun, 28 May 2017 12:31:52 +0000 (09:31 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 7 Jun 2017 15:49:23 +0000 (12:49 -0300)
commitda3e18059be96c67365e63e4d1e3f301d802c3c8
treebdf5a8ed1bd702684fa1353fef1be17918ab06aa
parent22b2807dae2c79eb9f75a5c0e4cdfd418fd14fcf
[media] staging: atomisp: Ignore errors from second gpio in ov2680 driver

As the existing comment in the driver indicates the sensor has only 1 pin,
but some boards may have 2 gpios defined and we toggle both as we we don't
know which one is the right one. However if the ACPI resources table
defines only 1 gpio (as expected) the gpio1_ctrl call will always fail,
causing the probing of the driver to file.

This commit ignore the return value of the gpio1_ctrl call, fixing this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/atomisp/i2c/ov2680.c