soc: qcom: gsbi: Fix error handling in gsbi_probe()
commit8d7504c56ed1046c424146d8011fa13bdf195f7f
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 7 Dec 2018 22:57:04 +0000 (8 01:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2019 20:31:36 +0000 (5 22:31 +0200)
tree9ae5e19577f26faa68f9e2c15bb07d0729451d1b
parenteb262db34a7a074e2d7bdb46d5eb0cf4c54b6a35
soc: qcom: gsbi: Fix error handling in gsbi_probe()

[ Upstream commit 8cd09a3dd3e176c62da67efcd477a44a8d87185e ]

If of_platform_populate() fails in gsbi_probe(),
gsbi->hclk is left undisabled.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/qcom/qcom_gsbi.c