]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ARM: S5P6440: Move CPU specific code in plat-s5p to machine directory
authorKukjin Kim <kgene.kim@samsung.com>
Mon, 25 Jan 2010 05:24:04 +0000 (14:24 +0900)
committerBen Dooks <ben-linux@fluff.org>
Wed, 27 Jan 2010 00:50:11 +0000 (09:50 +0900)
The s5p6440-clock.c and s5p6440-init.c code in the plat-s5p is specific to
s5p6440 SoC based systems. So these files are being moved to the machine
directory of s5p6440. And these files are renamed in the machine directory.

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/mach-s5p6440/Kconfig
arch/arm/mach-s5p6440/Makefile
arch/arm/mach-s5p6440/clock.c [moved from arch/arm/plat-s5p/s5p6440-clock.c with 99% similarity]
arch/arm/mach-s5p6440/gpio.c [moved from arch/arm/mach-s5p6440/s5p6440-gpio.c with 99% similarity]
arch/arm/mach-s5p6440/init.c [moved from arch/arm/plat-s5p/s5p6440-init.c with 94% similarity]
arch/arm/plat-s5p/Kconfig
arch/arm/plat-s5p/Makefile

index 3aa246244dcf430e42eb7bd7f21b7c8f213f11a3..4c29ff8b07de0fcd04782ca8f16613a2278fd433 100644 (file)
@@ -9,8 +9,6 @@ if ARCH_S5P6440
 
 config CPU_S5P6440
        bool
-       select CPU_S5P6440_INIT
-       select CPU_S5P6440_CLOCK
        help
          Enable S5P6440 CPU support
 
index a79b13011edc17707612934d5afcebbbae4565db..1ad894b1d3ab85f22f6bfc8c166347da039fe988 100644 (file)
@@ -12,7 +12,7 @@ obj-                          :=
 
 # Core support for S5P6440 system
 
-obj-$(CONFIG_CPU_S5P6440)      += cpu.o s5p6440-gpio.o
+obj-$(CONFIG_CPU_S5P6440)      += cpu.o init.o clock.o gpio.o
 
 # machine support
 
similarity index 99%
rename from arch/arm/plat-s5p/s5p6440-clock.c
rename to arch/arm/mach-s5p6440/clock.c
index 2f412f8c1212af78462afd3357e70e907aaebb14..b2672e16e7aa69000c9d22e12c65307559ea318f 100644 (file)
@@ -1,4 +1,4 @@
-/* linux/arch/arm/plat-s5p/s5p6440-clock.c
+/* linux/arch/arm/mach-s5p6440/clock.c
  *
  * Copyright (c) 2009 Samsung Electronics Co., Ltd.
  *             http://www.samsung.com/
similarity index 99%
rename from arch/arm/mach-s5p6440/s5p6440-gpio.c
rename to arch/arm/mach-s5p6440/gpio.c
index 742264c29f2a5e99591968bc2c4ca2ab17485523..b0ea741177ad1b20566a58d9de96175670b58a98 100644 (file)
@@ -1,4 +1,4 @@
-/* arch/arm/mach-s5p6440/s5p6440-gpio.c
+/* arch/arm/mach-s5p6440/gpio.c
  *
  * Copyright (c) 2009 Samsung Electronics Co., Ltd.
  *             http://www.samsung.com/
similarity index 94%
rename from arch/arm/plat-s5p/s5p6440-init.c
rename to arch/arm/mach-s5p6440/init.c
index 90178256cc281d256cc741b17b86617d3afe8254..a1f3727e40214fd6a95994106fea5eb8584f4027 100644 (file)
@@ -1,8 +1,10 @@
-/* linux/arch/arm/plat-s5p/s5p6440-init.c
+/* linux/arch/arm/mach-s5p6440/init.c
  *
  * Copyright (c) 2009 Samsung Electronics Co., Ltd.
  *             http://www.samsung.com/
  *
+ * S5P6440 - Init support
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
index e7c31e7060e583b361183de3cd72050a7ae4aaa9..fca6dade9fd9c3ddb4af5268314ee85984698b31 100644 (file)
@@ -24,19 +24,3 @@ config PLAT_S5P
        select SAMSUNG_IRQ_UART
        help
          Base platform code for Samsung's S5P series SoC.
-
-if (PLAT_S5P && ARCH_S5P6440)
-
-# Configuration options shared by all S5P64XX implementations
-
-config CPU_S5P6440_INIT
-       bool
-       help
-        Initialisation code for the S5P6440.
-
-config CPU_S5P6440_CLOCK
-       bool
-       help
-         Clock support code for the S5P6440.
-
-endif
index 92b64745054230962a2ff7d0a3bbd93ad7558299..a7c54b332d27531e1a00542ddb197c8952d901fe 100644 (file)
@@ -17,8 +17,3 @@ obj-y                         += cpu.o
 obj-y                          += clock.o
 obj-y                          += irq.o
 obj-y                          += setup-i2c0.o
-
-# CPU support
-
-obj-$(CONFIG_CPU_S5P6440_INIT) += s5p6440-init.o
-obj-$(CONFIG_CPU_S5P6440_CLOCK)        += s5p6440-clock.o