media: ov8856: ignore gpio and regulator for ov8856 with ACPI
authorBingbu Cao <bingbu.cao@intel.com>
Tue, 6 Jul 2021 09:18:49 +0000 (11:18 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 4 Aug 2021 12:43:51 +0000 (14:43 +0200)
commitd84a2e4900ff43daba4e19b0a7cc56326fe8642a
treec65cea985d4ab7bc63b5962c07379bf4af6da91d
parent0e2b8552660c5e3f9416c252e42632e780cdbb7b
media: ov8856: ignore gpio and regulator for ov8856 with ACPI

For ov8856 working with ACPI, it does not depend on the reset gpio
and regulator to do reset and power control, so should get the gpio
and regulator for non-ACPI cases only, otherwise it will break ov8856
with ACPI.

[Sakari Ailus: Wrap a line over 80 chars.]

Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Tianshu Qiu <tian.shu.qiu@intel.com>
Cc: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ov8856.c