]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:47:30 +0000 (09:47 +0200)
commit77c25f14747090e5dccbf6ecfdacf5ae4f9210ec
tree38c68318321153d66c9c4102b3e272eb82621c18
parent0a2e8ad2be9fdb5dedb338ace073d057ec99a22e
drm/panfrost: Fix missing clk_disable_unprepare() on error in panfrost_clk_init()

[ Upstream commit f42498705965bd4b026953c1892c686d8b1138e4 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/panfrost/panfrost_device.c