soc: qcom: ramp_controller: Fix an error handling path in qcom_ramp_controller_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 16 Apr 2023 22:29:35 +0000 (00:29 +0200)
committerBjorn Andersson <andersson@kernel.org>
Thu, 25 May 2023 03:02:10 +0000 (20:02 -0700)
commitb3d0dcc8e359cf5d57fb6308bc9750af5da574b3
tree02c193f1a23833bfd9eccd5d336efe148775cc97
parent3395d36e6805786c26d13188735bc796b9d7a7c9
soc: qcom: ramp_controller: Fix an error handling path in qcom_ramp_controller_probe()

'qrc' is known to be non-NULL at this point.
Checking for 'qrc->desc' was expected instead, so use it.

Fixes: a723c95fa137 ("soc: qcom: Add Qualcomm Ramp Controller driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/84727a79d0261b4112411aec23b553504015c02c.1681684138.git.christophe.jaillet@wanadoo.fr
drivers/soc/qcom/ramp_controller.c