OSDN Git Service

soc: qcom: gsbi: Fix error handling in gsbi_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 7 Dec 2018 22:57:04 +0000 (01:57 +0300)
committerAndy Gross <andy.gross@linaro.org>
Fri, 1 Feb 2019 22:08:52 +0000 (16:08 -0600)
commit8cd09a3dd3e176c62da67efcd477a44a8d87185e
tree48e8731922d3bbcd09c836cc52c1588d65494e92
parentbaef1c90aac7e5bf13f0360a3b334825a23d31a1
soc: qcom: gsbi: Fix error handling in gsbi_probe()

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>
drivers/soc/qcom/qcom_gsbi.c