From patchwork Wed Aug 7 14:46:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18838 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f71.google.com (mail-vb0-f71.google.com [209.85.212.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BC35D246B3 for ; Wed, 7 Aug 2013 14:47:42 +0000 (UTC) Received: by mail-vb0-f71.google.com with SMTP id g17sf2119745vbg.10 for ; Wed, 07 Aug 2013 07:47:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=ewtxHb8oA3IS7vTQ5MXM1lziV0xODqPgoL21ivnhH5I=; b=YFQV01fNm8W56tsa7btUYQB+9I8lYu010S8DuXwEmhMcv3PKuNNEk8jnQVDSAH3mko 7rswNZjYbUMnp5JCp4oQtb7k5hUgy8r0krfAd4zalpZ/Nu/QhPW+MIn7vEFo4RNIrYnD di3eH7HT87EuSszKz7jH3tcFw04uSCw3udGr71UrN9du66/lEMBrzq1ec5jvQlrcu6Aq hhNqvT+C1hLifrFNvDNsxDEW3U3BYAYwwsOmm7xa2UJdbPafeHbv1fIU3W8CX4rU5HZM 4odNnFOwU9FeulWxQSV+IK5kfghf3IghtJVg1t4GayedpZxqGsy321Y1/Ia+/erw3jt5 uL1A== X-Received: by 10.224.171.72 with SMTP id g8mr931490qaz.7.1375886862481; Wed, 07 Aug 2013 07:47:42 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.81.200 with SMTP id c8ls736452qey.85.gmail; Wed, 07 Aug 2013 07:47:42 -0700 (PDT) X-Received: by 10.220.82.9 with SMTP id z9mr1480534vck.0.1375886862333; Wed, 07 Aug 2013 07:47:42 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id z6si1680153vcu.145.2013.08.07.07.47.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 Aug 2013 07:47:42 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id c13so1882056vea.24 for ; Wed, 07 Aug 2013 07:47:42 -0700 (PDT) X-Gm-Message-State: ALoCoQnNlaabpkUKlwLXnX+Aoxo60nm3C91T9h//x1D6N6hUQ2jYJBvQqsJssOns5ls1kLbXr4dk X-Received: by 10.52.117.208 with SMTP id kg16mr498977vdb.48.1375886862056; Wed, 07 Aug 2013 07:47:42 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.11.8 with SMTP id pc8csp204986vcb; Wed, 7 Aug 2013 07:47:41 -0700 (PDT) X-Received: by 10.66.253.100 with SMTP id zz4mr1069828pac.48.1375886861118; Wed, 07 Aug 2013 07:47:41 -0700 (PDT) Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com [209.85.160.43]) by mx.google.com with ESMTPS id to1si6281920pab.138.2013.08.07.07.47.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 Aug 2013 07:47:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.43 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.43; Received: by mail-pb0-f43.google.com with SMTP id md4so903371pbc.2 for ; Wed, 07 Aug 2013 07:47:40 -0700 (PDT) X-Received: by 10.68.105.195 with SMTP id go3mr901500pbb.180.1375886860558; Wed, 07 Aug 2013 07:47:40 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id om2sm8635822pbc.30.2013.08.07.07.47.36 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 07 Aug 2013 07:47:39 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl, swarren@nvidia.com Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, mturquette@linaro.org, linux-arm-kernel@lists.infradead.org, Viresh Kumar Subject: [PATCH 5/6] ARM: Tegra: start using cpufreq-cpu0 driver Date: Wed, 7 Aug 2013 20:16:47 +0530 Message-Id: <6610c86618b781b00eba446ca19035e077d99691.1375886595.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , cpufreq-cpu0 driver can be probed over DT only if a corresponding device node is created for the SoC which wants to use it. Lets create a platform device for cpufreq-cpu0 driver for Tegra. Also it removes the Kconfig entry responsible to compiling tegra-cpufreq driver and hence there will not be any conflicts between two cpufreq drivers. Signed-off-by: Viresh Kumar --- arch/arm/mach-tegra/tegra.c | 2 ++ drivers/cpufreq/Kconfig.arm | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-tegra/tegra.c b/arch/arm/mach-tegra/tegra.c index 0d1e412..6ab3f69 100644 --- a/arch/arm/mach-tegra/tegra.c +++ b/arch/arm/mach-tegra/tegra.c @@ -82,11 +82,13 @@ static struct of_dev_auxdata tegra20_auxdata_lookup[] __initdata = { static void __init tegra_dt_init(void) { + struct platform_device_info devinfo = { .name = "cpufreq-cpu0", }; struct soc_device_attribute *soc_dev_attr; struct soc_device *soc_dev; struct device *parent = NULL; tegra_clocks_apply_init_table(); + platform_device_register_full(&devinfo); soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); if (!soc_dev_attr) diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index de4d5d9..9472160 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -215,11 +215,3 @@ config ARM_SPEAR_CPUFREQ default y help This adds the CPUFreq driver support for SPEAr SOCs. - -config ARM_TEGRA_CPUFREQ - bool "TEGRA CPUFreq support" - depends on ARCH_TEGRA - select CPU_FREQ_TABLE - default y - help - This adds the CPUFreq driver support for TEGRA SOCs.