From patchwork Thu Apr 4 12:54:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2393011 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id 794483FD1A for ; Thu, 4 Apr 2013 13:47:27 +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 1UNkVi-0005m0-Aj for patchwork-linux-arm@patchwork.kernel.org; Thu, 04 Apr 2013 13:47:26 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UNji4-0005pw-G3; Thu, 04 Apr 2013 12:56:08 +0000 Received: from mail-pa0-f49.google.com ([209.85.220.49]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UNjhY-0005TI-8K for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2013 12:55:37 +0000 Received: by mail-pa0-f49.google.com with SMTP id kp14so1458120pab.22 for ; Thu, 04 Apr 2013 05:55:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:x-gm-message-state; bh=CGKJGC3gcWsksU+dvVBTTN4Db7Z6LwS2f14ztDs+wHI=; b=B7nsp8/igaDU1d2l1yiGKTdi719qMnw/w8c5aE4b1bLf0zBkGuG+x1B9BNLJnWfENR uLFkgLqI/PrxJniQzWAnHu+IFIGVVzgoSQSQpEl9VFfa//h86LzHsR4NfiXIObhIJnwC 2BunBjWFvCDgspTNmavepKH+ZdOmY+2+t8sDTcYkO2Bv97dt5BPOzE9cwPnkRGa4CRCG LsR6+D776vciFjFoX7jJXaRn4G+vIw44ai+YbVs1INuHFLR7PkJQ2f5JnnulUFZyhzMd 4FUKczqks9ZbpxVvqlkiB+zQHl3tkiU9FCKIcctAjbfXmGv4PHFQ+rnrrILTuyuLkMVC Owsw== X-Received: by 10.68.98.34 with SMTP id ef2mr8725303pbb.18.1365080134096; Thu, 04 Apr 2013 05:55:34 -0700 (PDT) Received: from localhost ([122.172.193.181]) by mx.google.com with ESMTPS id fk1sm10111283pbd.36.2013.04.04.05.55.28 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 04 Apr 2013 05:55:33 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Subject: [PATCH 03/18] cpufreq: davinci: move cpufreq driver to drivers/cpufreq Date: Thu, 4 Apr 2013 18:24:11 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQnrTiZG+be1VjgKIpjtRmC0p6Y/7ITaHrExhn1mO2CpWa4VHnDwRWCFMg3k1azlKkfgRiRH X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130404_085536_413938_BAD9A9E4 X-CRM114-Status: GOOD ( 10.23 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.49 listed in list.dnswl.org] 1.7 KHOP_BIG_TO_CC Sent to 10+ recipients instaed of Bcc or a list -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: davinci-linux-open-source@linux.davincidsp.com, robin.randhawa@arm.com, linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, Liviu.Dudau@arm.com, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, Steve.Bannister@arm.com, linux-arm-kernel@lists.infradead.org, Sekhar Nori , arvind.chauhan@arm.com, linaro-kernel@lists.linaro.org, charles.garcia-tobin@arm.com 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 This patch moves cpufreq driver of ARM based davinci platform to drivers/cpufreq. Cc: Sekhar Nori Cc: davinci-linux-open-source@linux.davincidsp.com Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Viresh Kumar Acked-by: Sekhar Nori Acked-by: Arnd Bergmann --- arch/arm/mach-davinci/Makefile | 1 - drivers/cpufreq/Makefile | 1 + arch/arm/mach-davinci/cpufreq.c => drivers/cpufreq/davinci-cpufreq.c | 2 -- 3 files changed, 1 insertion(+), 3 deletions(-) rename arch/arm/mach-davinci/cpufreq.c => drivers/cpufreq/davinci-cpufreq.c (99%) diff --git a/arch/arm/mach-davinci/Makefile b/arch/arm/mach-davinci/Makefile index fb5c1aa..dd1ffcc 100644 --- a/arch/arm/mach-davinci/Makefile +++ b/arch/arm/mach-davinci/Makefile @@ -37,7 +37,6 @@ obj-$(CONFIG_MACH_MITYOMAPL138) += board-mityomapl138.o obj-$(CONFIG_MACH_OMAPL138_HAWKBOARD) += board-omapl138-hawk.o # Power Management -obj-$(CONFIG_CPU_FREQ) += cpufreq.o obj-$(CONFIG_CPU_IDLE) += cpuidle.o obj-$(CONFIG_SUSPEND) += pm.o sleep.o obj-$(CONFIG_HAVE_CLK) += pm_domain.o diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile index c34094b..c0e8921 100644 --- a/drivers/cpufreq/Makefile +++ b/drivers/cpufreq/Makefile @@ -49,6 +49,7 @@ obj-$(CONFIG_ARM_BIG_LITTLE_CPUFREQ) += arm_big_little.o # LITTLE drivers, so that it is probed last. obj-$(CONFIG_ARM_DT_BL_CPUFREQ) += arm_big_little_dt.o +obj-$(CONFIG_ARCH_DAVINCI_DA850) += davinci-cpufreq.o obj-$(CONFIG_UX500_SOC_DB8500) += dbx500-cpufreq.o obj-$(CONFIG_ARM_EXYNOS_CPUFREQ) += exynos-cpufreq.o obj-$(CONFIG_ARM_EXYNOS4210_CPUFREQ) += exynos4210-cpufreq.o diff --git a/arch/arm/mach-davinci/cpufreq.c b/drivers/cpufreq/davinci-cpufreq.c similarity index 99% rename from arch/arm/mach-davinci/cpufreq.c rename to drivers/cpufreq/davinci-cpufreq.c index 7c2e943..c33c76c 100644 --- a/arch/arm/mach-davinci/cpufreq.c +++ b/drivers/cpufreq/davinci-cpufreq.c @@ -30,8 +30,6 @@ #include #include -#include "clock.h" - struct davinci_cpufreq { struct device *dev; struct clk *armclk;