drm/panfrost: Remove NULL checks for regulator
authorSteven Price <steven.price@arm.com>
Fri, 6 Sep 2019 14:20:53 +0000 (15:20 +0100)
committerRob Herring <robh@kernel.org>
Thu, 19 Sep 2019 16:45:44 +0000 (11:45 -0500)
commitd18a96620411298f7925bf9a9e26e9e7add8ea2b
tree6bf26941e00759df53671f6413c7653d6209cb96
parentedfa07504c5bb188b262fb2f4fc487de966f89a2
drm/panfrost: Remove NULL checks for regulator

devm_regulator_get() is now used to populate pfdev->regulator which
ensures that this cannot be NULL (a dummy regulator will be returned if
necessary). So remove the checks in panfrost_devfreq_target().

Signed-off-by: Steven Price <steven.price@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/3e3a2c8a-b4fc-8af6-39e1-b26160db2c7c@arm.com
drivers/gpu/drm/panfrost/panfrost_devfreq.c