]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: use regulator_get_optional() for first attempt
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 28 Apr 2020 23:05:47 +0000 (01:05 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 20 May 2020 10:32:18 +0000 (12:32 +0200)
commit788208fcfb1640cae75d60867050029868ede086
treed6a5bfc6f329ad9caa92caec36c8a6174658937a
parentd7aace9c5d2e6135f02c5456172e899d5fa66148
media: atomisp: use regulator_get_optional() for first attempt

Some BIOSes seem to use different names for some regulators.

Use regulator_get_optional() for the first attempt, in order
to avoid using the dummy regulator and produce a warning, in
the case that the first attempt fails.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/platform/intel-mid/atomisp_gmin_platform.c