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)
commit5060e35ee5a81576b4c682eeb2131f2936fe5ffb
treed6a5bfc6f329ad9caa92caec36c8a6174658937a
parent0a76fd8e8d202dcaabc714850205d5d75c9b8271
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