ARM: exynos: exynos-cpufreq platform device isn't supported anymore
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 30 Mar 2016 08:15:27 +0000 (13:45 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 8 Apr 2016 23:18:42 +0000 (01:18 +0200)
The driver is removed long back and we don't support this device
anymore. Stop adding it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/arm/mach-exynos/exynos.c

index bbf51a4..4dfce10 100644 (file)
@@ -232,12 +232,8 @@ static void __init exynos_cpufreq_init(void)
        const struct of_device_id *match;
 
        match = of_match_node(exynos_cpufreq_matches, root);
-       if (!match) {
-               platform_device_register_simple("exynos-cpufreq", -1, NULL, 0);
-               return;
-       }
-
-       platform_device_register_simple(match->data, -1, NULL, 0);
+       if (match)
+               platform_device_register_simple(match->data, -1, NULL, 0);
 }
 
 static void __init exynos_dt_machine_init(void)