This patch added check cpufreq table.
Thermal driver must be registered after the registration of cpufreq.
Change-Id: I36732df36c0afe8d74529816ee4ebec7df5bd23c
Signed-off-by: Park Chungwoo <cww.park@samsung.com>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/platform_device.h>
+#include <linux/cpufreq.h>
#include "exynos_tmu.h"
#include "../thermal_core.h"
struct exynos_tmu_data *data;
int ret;
+ if (!cpufreq_frequency_get_table(0))
+ return -EPROBE_DEFER;
+
data = devm_kzalloc(&pdev->dev, sizeof(struct exynos_tmu_data),
GFP_KERNEL);
if (!data)