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: 2392681 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by patchwork2.kernel.org (Postfix) with ESMTP id 15390DF25A for ; Thu, 4 Apr 2013 12:59:56 +0000 (UTC) Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id r34CteZu024062; Thu, 4 Apr 2013 07:55:40 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id r34CtdZ6014876; Thu, 4 Apr 2013 07:55:39 -0500 Received: from dlelxv23.itg.ti.com (172.17.1.198) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.2.342.3; Thu, 4 Apr 2013 07:55:39 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id r34Ctd69004716; Thu, 4 Apr 2013 07:55:39 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 1EA3C80627; Thu, 4 Apr 2013 06:55:39 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp53.itg.ti.com (dflp53.itg.ti.com [128.247.5.6]) by linux.omap.com (Postfix) with ESMTP id E0B4180626 for ; Thu, 4 Apr 2013 06:55:36 -0600 (CST) Received: from neches.ext.ti.com (neches.ext.ti.com [192.91.81.29]) by dflp53.itg.ti.com (8.13.8/8.13.8) with ESMTP id r34Cta1V007510 for ; Thu, 4 Apr 2013 07:55:36 -0500 (CDT) Received: from mail6.bemta7.messagelabs.com (mail6.bemta7.messagelabs.com [216.82.255.55]) by neches.ext.ti.com (8.13.7/8.13.7) with ESMTP id r34Cta0f017975 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 4 Apr 2013 07:55:36 -0500 Received: from [216.82.253.147:57554] by server-8.bemta-7.messagelabs.com id F4/3F-09144-8487D515; Thu, 04 Apr 2013 12:55:36 +0000 X-Env-Sender: viresh.kumar@linaro.org X-Msg-Ref: server-16.tower-165.messagelabs.com!1365080134!10607342!1 X-Originating-IP: [209.85.192.171] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.8.6.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 20301 invoked from network); 4 Apr 2013 12:55:35 -0000 Received: from mail-pd0-f171.google.com (HELO mail-pd0-f171.google.com) (209.85.192.171) by server-16.tower-165.messagelabs.com with RC4-SHA encrypted SMTP; 4 Apr 2013 12:55:35 -0000 Received: by mail-pd0-f171.google.com with SMTP id z10so1416143pdj.2 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=MJLaGtR/+EDUsfn+uw6iXxVOqcaSNLnmQfleTIFtu+cowB9bXO1FdPzQkrg4XPZ4nf cEhyrnbF1ykdvnFmLR+4owmKcE37kR/CEEJk73+L81+UxFOTDj7unj2tdxn7/2vqkp1X Wmf873rH0X6M6qpaGBN4/8yw4wULPfQxfu4hQcZbvRsTWfkpxeH8lYEI4ksMOKxj8D66 TnHIHBI3W2L8ga/JjRXnYpvEd0ttMNebM8IAyyoTz1/ADSZqj6HYhCzNCye6iNVzJlMx C6nlB09ccyo41RFSX5svZvZjrhVaq5RRYJ3d1iGAoq5dzNbMCrqAvsy8IK2iEyxTHJlt FM+A== 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: 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: X-Gm-Message-State: ALoCoQnuF27masd+W6m9HfVKJfjqngCDhAWEAKhtXXUKD2S8mWWd4tiYHVpOr8iTGPtoD2sRXyGO CC: , , , Viresh Kumar , , , , , , , , , X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com 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;