2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 03:33:59 +08:00
linux-next/drivers/thermal/samsung
Krzysztof Kozlowski 824ead03b7 thermal: exynos: Fix unbalanced regulator disable on probe failure
During probe if the regulator could not be enabled, the error exit path
would still disable it. This could lead to unbalanced counter of
regulator enable/disable.

The patch moves code for getting and enabling the regulator from
exynos_map_dt_data() to probe function because it is really not a part
of getting Device Tree properties.

Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Fixes: 5f09a5cbd1 ("thermal: exynos: Disable the regulator on probe failure")
Cc: <stable@vger.kernel.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
2015-11-04 11:07:51 -08:00
..
exynos_tmu.c thermal: exynos: Fix unbalanced regulator disable on probe failure 2015-11-04 11:07:51 -08:00
exynos_tmu.h thermal: exynos: Add the support for Exynos5433 TMU 2015-05-04 21:27:55 -07:00
Kconfig thermal: exynos: Add the dependency of CONFIG_THERMAL_OF instead of CONFIG_OF 2015-08-02 19:36:57 -07:00
Makefile thermal: samsung: core: Exynos TMU rework to use device tree for configuration 2015-01-24 17:39:32 -04:00