]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panfrost: dynamically alloc regulators
authorClément Péron <peron.clem@gmail.com>
Fri, 10 Jul 2020 09:54:04 +0000 (11:54 +0200)
committerRob Herring <robh@kernel.org>
Fri, 7 Aug 2020 16:11:26 +0000 (10:11 -0600)
commit4a26ec1ecc124bc3469d33d7938a5f57bb616005
treec50c554c12fe41b37f33199534e3805d35f5676c
parent4e43a2de2d9ae70e952c6299059b01fb0a2566a0
drm/panfrost: dynamically alloc regulators

We will later introduce regulators managed by OPP.

Only alloc regulators when it's needed. This also help use
to release the regulators only when they are allocated.

Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200710095409.407087-10-peron.clem@gmail.com
drivers/gpu/drm/panfrost/panfrost_device.c
drivers/gpu/drm/panfrost/panfrost_device.h