Revert "Thermal: exynos: Support for TMU regulator defined at device tree"
authorJonghwa Lee <jonghwa3.lee@samsung.com>
Fri, 1 Nov 2013 05:54:23 +0000 (14:54 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:45:05 +0000 (11:45 +0900)
This reverts commit ed58c6a559cf9a870e55587872f9b0eb322e3e6b.

drivers/thermal/exynos_thermal.c

index 84794b3..788b1dd 100644 (file)
@@ -38,7 +38,6 @@
 #include <linux/cpufreq.h>
 #include <linux/cpu_cooling.h>
 #include <linux/of.h>
-#include <linux/regulator/consumer.h>
 
 /* Exynos generic registers */
 #define EXYNOS_TMU_REG_TRIMINFO                0x0
 
 #define EXYNOS_ZONE_COUNT      3
 
-#define EXYNOS_TMU_REGULATOR "vdd_ts"
-
 struct exynos_tmu_data {
        struct exynos_tmu_platform_data *pdata;
        struct resource *mem;
@@ -903,7 +900,6 @@ static int exynos_tmu_probe(struct platform_device *pdev)
 {
        struct exynos_tmu_data *data;
        struct exynos_tmu_platform_data *pdata = pdev->dev.platform_data;
-       struct regulator *reg;
        int ret, i;
 
        if (!pdata)
@@ -913,21 +909,6 @@ static int exynos_tmu_probe(struct platform_device *pdev)
                dev_err(&pdev->dev, "No platform init data supplied.\n");
                return -ENODEV;
        }
-
-       reg = regulator_get(&pdev->dev, EXYNOS_TMU_REGULATOR);
-       if (!IS_ERR(reg)) {
-               ret = regulator_enable(reg);
-               if (ret) {
-                       dev_err(&pdev->dev, "Regulator %s not enabled.\n",
-                               EXYNOS_TMU_REGULATOR);
-                       return ret;
-               }
-       } else {
-               dev_warn(&pdev->dev,
-                        "Regulator %s not defined at device tree.\n",
-                        EXYNOS_TMU_REGULATOR);
-       }
-
        data = devm_kzalloc(&pdev->dev, sizeof(struct exynos_tmu_data),
                                        GFP_KERNEL);
        if (!data) {