]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panfrost: Fix regulator_get_optional() misuse
authorMark Brown <broonie@kernel.org>
Wed, 4 Sep 2019 12:30:32 +0000 (13:30 +0100)
committerRob Herring <robh@kernel.org>
Thu, 19 Sep 2019 16:45:44 +0000 (11:45 -0500)
commita8d8badbe2be6e79df2b21102a2c7d80d48ea213
tree08ea7e3ea95f72307c815095ded03435682be810
parentd300b5483e3717eda00a6721ce70e41fce0ebae3
drm/panfrost: Fix regulator_get_optional() misuse

The panfrost driver requests a supply using regulator_get_optional()
but both the name of the supply and the usage pattern suggest that it is
being used for the main power for the device and is not at all optional
for the device for function, there is no meaningful handling for absent
supplies.  Such regulators should use the vanilla regulator_get()
interface, it will ensure that even if a supply is not described in the
system integration one will be provided in software.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190904123032.23263-1-broonie@kernel.org
drivers/gpu/drm/panfrost/panfrost_device.c