]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panfrost: Fix missing clk_disable_unprepare() on error in panfrost_clk_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 8 Jun 2021 14:38:56 +0000 (14:38 +0000)
committerSteven Price <steven.price@arm.com>
Fri, 11 Jun 2021 10:33:51 +0000 (11:33 +0100)
commit6584000d33989feeda3b7c3c07405e2ae7dfce34
treeda27f1208cf3e7326f4ccf7d299b268d043bc935
parent2d557a3aae217e2b8509ebde1a61dd46faf7be9e
drm/panfrost: Fix missing clk_disable_unprepare() on error in panfrost_clk_init()

Fix the missing clk_disable_unprepare() before return
from panfrost_clk_init() in the error handling case.

Fixes: 4c86246fd02f ("drm: panfrost: add optional bus_clock")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210608143856.4154766-1-weiyongjun1@huawei.com
drivers/gpu/drm/panfrost/panfrost_device.c