]> git.karo-electronics.de Git - linux-beck.git/commitdiff
cpufreq: pxa3xx: move cpufreq driver to drivers/cpufreq
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Apr 2013 12:54:12 +0000 (12:54 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 8 Apr 2013 11:02:31 +0000 (13:02 +0200)
This patch moves cpufreq driver of ARM based pxa3xx platform to drivers/cpufreq.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/arm/mach-pxa/Makefile
arch/arm/mach-pxa/include/mach/generic.h [new file with mode: 0644]
drivers/cpufreq/Makefile
drivers/cpufreq/pxa3xx-cpufreq.c [moved from arch/arm/mach-pxa/cpufreq-pxa3xx.c with 98% similarity]

index 12c5005583875ef7313084c2ef4fb0e23ebec436..929e7008e2e4cf43df51b9a8dadfd59775657e2d 100644 (file)
@@ -10,7 +10,6 @@ obj-$(CONFIG_PM)              += pm.o sleep.o standby.o
 ifeq ($(CONFIG_CPU_FREQ),y)
 obj-$(CONFIG_PXA25x)           += cpufreq-pxa2xx.o
 obj-$(CONFIG_PXA27x)           += cpufreq-pxa2xx.o
-obj-$(CONFIG_PXA3xx)           += cpufreq-pxa3xx.o
 endif
 
 # Generic drivers that other drivers may depend upon
diff --git a/arch/arm/mach-pxa/include/mach/generic.h b/arch/arm/mach-pxa/include/mach/generic.h
new file mode 100644 (file)
index 0000000..665542e
--- /dev/null
@@ -0,0 +1 @@
+#include "../../generic.h"
index c0e8921f91fc6d728015446fb69fe3337a13a8c5..3458bf2ed1bb9ec59082a97c8a3cbd2f4521f420 100644 (file)
@@ -59,6 +59,7 @@ obj-$(CONFIG_ARM_HIGHBANK_CPUFREQ)    += highbank-cpufreq.o
 obj-$(CONFIG_ARM_IMX6Q_CPUFREQ)                += imx6q-cpufreq.o
 obj-$(CONFIG_ARM_KIRKWOOD_CPUFREQ)     += kirkwood-cpufreq.o
 obj-$(CONFIG_ARM_OMAP2PLUS_CPUFREQ)    += omap-cpufreq.o
+obj-$(CONFIG_PXA3xx)                   += pxa3xx-cpufreq.o
 obj-$(CONFIG_ARM_S3C2416_CPUFREQ)      += s3c2416-cpufreq.o
 obj-$(CONFIG_ARM_S3C64XX_CPUFREQ)      += s3c64xx-cpufreq.o
 obj-$(CONFIG_ARM_S5PV210_CPUFREQ)      += s5pv210-cpufreq.o
similarity index 98%
rename from arch/arm/mach-pxa/cpufreq-pxa3xx.c
rename to drivers/cpufreq/pxa3xx-cpufreq.c
index 8c45b2b926a79929691b1733aa8c75a1f9cdd045..15d60f857ad567f92bfdb6735f9b2f7d51804a7c 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * linux/arch/arm/mach-pxa/cpufreq-pxa3xx.c
- *
  * Copyright (C) 2008 Marvell International Ltd.
  *
  * This program is free software; you can redistribute it and/or modify
 #include <linux/slab.h>
 #include <linux/io.h>
 
+#include <mach/generic.h>
 #include <mach/pxa3xx-regs.h>
 
-#include "generic.h"
-
 #define HSS_104M       (0)
 #define HSS_156M       (1)
 #define HSS_208M       (2)