From: Nishanth Menon Subject: [PM-OPP][PATCH 2/2] omap3: opp: make independent of cpufreq Date: Tue, 10 Aug 2010 21:16:58 -0500 Message-ID: <1281493018-29294-3-git-send-email-nm@ti.com> References: <1281493018-29294-1-git-send-email-nm@ti.com> Return-path: Received: from bear.ext.ti.com ([192.94.94.41]:41243 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758078Ab0HKCRI (ORCPT ); Tue, 10 Aug 2010 22:17:08 -0400 In-Reply-To: <1281493018-29294-1-git-send-email-nm@ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: linux-omap Cc: Nishanth Menon , Eduardo Valentin , Kevin Hilman , Paul Walmsley , Rajendra Nayak , Sanjeev Premi , Thara Gopinath , Tony Lindgren Make opp3xx data which is registered with the opp layer dependent purely on CONFIG_PM as opp layer and pm.c users are CONFIG_PM dependent not cpufreq dependent. so we rename the data definition to opp3xxx_data.c (inline with what we have for omap2), also move the build definition to be under the existing CONFIG_PM build instead of CPUFREQ. Cc: Eduardo Valentin Cc: Kevin Hilman Cc: Paul Walmsley Cc: Rajendra Nayak Cc: Sanjeev Premi Cc: Thara Gopinath Cc: Tony Lindgren Signed-off-by: Nishanth Menon --- Note: This takes care of the discussion on opp file renaming and making it independent of cpufreq, unless I missed something else arch/arm/mach-omap2/Makefile | 5 +---- .../mach-omap2/{cpufreq34xx.c => opp3xxx_data.c} | 0 2 files changed, 1 insertions(+), 4 deletions(-) rename arch/arm/mach-omap2/{cpufreq34xx.c => opp3xxx_data.c} (100%) diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index 0b188fa..43d7372 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile @@ -58,11 +58,8 @@ obj-$(CONFIG_OMAP_SMARTREFLEX_CLASS3) += smartreflex-class3.o AFLAGS_sleep24xx.o :=-Wa,-march=armv6 AFLAGS_sleep34xx.o :=-Wa,-march=armv7-a -endif +obj-$(CONFIG_ARCH_OMAP3) += opp3xxx_data.o -# CPU Frequency -ifeq ($(CONFIG_CPU_FREQ),y) -obj-$(CONFIG_ARCH_OMAP3) += cpufreq34xx.o endif # PRCM diff --git a/arch/arm/mach-omap2/cpufreq34xx.c b/arch/arm/mach-omap2/opp3xxx_data.c similarity index 100% rename from arch/arm/mach-omap2/cpufreq34xx.c rename to arch/arm/mach-omap2/opp3xxx_data.c -- 1.6.3.3