From e3e410732c89bdc8cf9f50f978dd82cea1dc18e2 Mon Sep 17 00:00:00 2001 From: Soomin Kim Date: Mon, 11 Jul 2016 15:13:59 +0900 Subject: [PATCH] [COMMON] thermal: samsung: Add CONFIG_CPU_FREQ cpufreq_frequency_get_table() should be called when CONFIG_CPU_FREQ is enabled. Change-Id: I377f4c31b651cc3728ff322745c280be851352f4 Signed-off-by: Soomin Kim --- drivers/thermal/samsung/exynos_tmu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index abb8e905fade..87f673ad3ac6 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -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); -- 2.20.1