thermal: imx8mm: Disable the clock on probe failure
authorFabio Estevam <festevam@gmail.com>
Wed, 2 Dec 2020 23:24:48 +0000 (20:24 -0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 4 Dec 2020 19:46:03 +0000 (20:46 +0100)
commite57eb8b5050c9b6d63eea26b194d96744fe4018a
tree3060d7b9edcef14004bc8b4ea8abae37211201b1
parentce662ccde5c6ae4f4d89fe71570bf59441004eb9
thermal: imx8mm: Disable the clock on probe failure

Prior to returning an error in probe, disable the previously
enabled clock.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201202232448.2692-2-festevam@gmail.com
drivers/thermal/imx8mm_thermal.c