From patchwork Wed May 14 01:11:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Abraham X-Patchwork-Id: 4171691 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5D3F8BFF02 for ; Wed, 14 May 2014 01:13:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9996C2034E for ; Wed, 14 May 2014 01:13:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D59C820306 for ; Wed, 14 May 2014 01:13:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752288AbaENBNM (ORCPT ); Tue, 13 May 2014 21:13:12 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:51351 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752231AbaENBNL (ORCPT ); Tue, 13 May 2014 21:13:11 -0400 Received: by mail-pa0-f53.google.com with SMTP id kp14so949228pab.40 for ; Tue, 13 May 2014 18:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EmZzRWTNI4bcYkQwsYxBtQfyy+pjZTjgRjAL8lIuNZs=; b=k7Q3Lvv8MXiWc6ehQiTn/UpYs/wYEq9CshPCmVo3kKP4m76+OGU5/y4w7vHOXCTBcz KVLN+ECudBMIIKqJTQLzXQtC1eM65YQ9xOMqWxQF4tEuay26t1XsiNN1w5E2ETotoOen chiChUi8C/to5KOLdGNOoHwWVDieI+mic6jqIq0hLtl3COy8JNdyjAnCzH0ULy81yxyA nlVnr+D4UTiwDI7SD5QAtcauyxG4SHc7XPclb8QyG90Y2YvJGKNYF8voJO+OJGqX/BWm lBhabJMsObaX6AWoTgHiYYUPTKbJHrpFWYI7Sn12nDfG52fUNM0kf71oxkJ65gW8KwgJ grcA== X-Received: by 10.68.171.229 with SMTP id ax5mr388504pbc.125.1400029991033; Tue, 13 May 2014 18:13:11 -0700 (PDT) Received: from localhost.localdomain ([117.213.250.141]) by mx.google.com with ESMTPSA id tg9sm303528pbc.29.2014.05.13.18.13.01 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 13 May 2014 18:13:09 -0700 (PDT) X-Google-Original-From: Thomas Abraham From: Thomas Abraham To: cpufreq@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: mturquette@linaro.org, shawn.guo@linaro.org, devicetree@vger.kernel.org, rjw@rjwysocki.net, linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com, t.figa@samsung.com, l.majewski@samsung.com, viresh.kumar@linaro.org, heiko@sntech.de, thomas.ab@samsung.com Subject: [PATCH v4 7/8] ARM: Exynos: switch to using generic cpufreq-cpu0 driver Date: Wed, 14 May 2014 06:41:15 +0530 Message-Id: <1400029876-5830-8-git-send-email-thomas.ab@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-Reply-To: <1400029876-5830-1-git-send-email-thomas.ab@samsung.com> References: <1400029876-5830-1-git-send-email-thomas.ab@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thomas Abraham Remove the platform device instantiation for Exynos specific cpufreq driver and add the platform device for cpufreq-cpu0 driver. Signed-off-by: Thomas Abraham Acked-by: Tomasz Figa --- arch/arm/mach-exynos/exynos.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index b32a907..489a495 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -232,7 +232,9 @@ void __init exynos_cpuidle_init(void) void __init exynos_cpufreq_init(void) { - platform_device_register_simple("exynos-cpufreq", -1, NULL, 0); + if (!(of_machine_is_compatible("samsung,exynos5420")) && + !(of_machine_is_compatible("samsung,exynos5440"))) + platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0); } void __init exynos_init_late(void)