[COMMON] thermal: samsung: Add CONFIG_CPU_FREQ
authorSoomin Kim <sm8326.kim@samsung.com>
Mon, 11 Jul 2016 06:13:59 +0000 (15:13 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:09:22 +0000 (17:09 +0900)
cpufreq_frequency_get_table() should be called
when CONFIG_CPU_FREQ is enabled.

Change-Id: I377f4c31b651cc3728ff322745c280be851352f4
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
drivers/thermal/samsung/exynos_tmu.c

index abb8e905fadef4b465f3116bf763ccae50bd47b7..87f673ad3ac694ec3e5b9c821b5c8192c7d5aeeb 100644 (file)
@@ -1110,9 +1110,10 @@ static int exynos_tmu_probe(struct platform_device *pdev)
 {
        struct exynos_tmu_data *data;
        int ret;
-
+#ifdef CONFIG_CPU_FREQ
        if (!cpufreq_frequency_get_table(0))
                return -EPROBE_DEFER;
+#endif
 
        data = devm_kzalloc(&pdev->dev, sizeof(struct exynos_tmu_data),
                                        GFP_KERNEL);