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: 2840337 Return-Path: X-Original-To: patchwork-linux-arm@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 45F42BF535 for ; Wed, 7 Aug 2013 14:49:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2E22F20365 for ; Wed, 7 Aug 2013 14:49:31 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D7DB02015B for ; Wed, 7 Aug 2013 14:49:29 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V752b-0007l5-L4; Wed, 07 Aug 2013 14:48:46 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V752J-0002Id-Er; Wed, 07 Aug 2013 14:48:27 +0000 Received: from mail-pd0-f182.google.com ([209.85.192.182]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V751u-0002BL-Dg for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2013 14:48:04 +0000 Received: by mail-pd0-f182.google.com with SMTP id r10so1467879pdi.13 for ; Wed, 07 Aug 2013 07:47:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=ewtxHb8oA3IS7vTQ5MXM1lziV0xODqPgoL21ivnhH5I=; b=OsUpLmklDpKxZBdao69DntoXm2ajd3i8iDOuvx+pOuXmyz3F6RvFFLHENBuo4MijgR hRhjggIQXO3kCHwoA5Djt9pktQgwRWlwpGH3D66MTtRw46U5A3sN/6BD84+qMM0X266+ PGvLh4qDUpxVoSKOhuUtys+Qna6UQMJ1GxqeKWg9F1OJieYzqCymHBh7I7pRmTuDiQLR C3pwZNMsOeYcUuPb3NF9pLpYyJZ7iQNUEpQsrhwnXP/Os4rEDF6J4qQYbCBH5jZfQGws KPx5UQIDee241H68KDMwuJm6xoxKJvStthIY4I0eRDIJMrkBxB7Xs3lbTxNDUop4Yqd/ 9y7w== X-Gm-Message-State: ALoCoQn0lQjjKFBtPbUdv+8WrT8Q8eL8eKhTNZUFCVxbRMR3FvvEdZsWtR/bvlcA3/Am9/U7NcM7 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130807_104802_628610_1C8DCAEB X-CRM114-Status: GOOD ( 12.92 ) X-Spam-Score: -1.9 (-) Cc: linaro-kernel@lists.linaro.org, mturquette@linaro.org, linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 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.