From: Viresh Kumar Date: Wed, 30 Mar 2016 08:15:27 +0000 (+0530) Subject: ARM: exynos: exynos-cpufreq platform device isn't supported anymore X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea3b05e62f097a604f4dbe7d3ab785a148b61e93;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ARM: exynos: exynos-cpufreq platform device isn't supported anymore The driver is removed long back and we don't support this device anymore. Stop adding it. Signed-off-by: Viresh Kumar Reviewed-by: Krzysztof Kozlowski Signed-off-by: Rafael J. Wysocki --- diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index bbf51a46f772..4dfce1069406 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -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)