From: Soomin Kim Date: Mon, 11 Jul 2016 06:13:59 +0000 (+0900) Subject: [COMMON] thermal: samsung: Add CONFIG_CPU_FREQ X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e3e410732c89bdc8cf9f50f978dd82cea1dc18e2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 --- 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);