diff options
author | Heiko Stuebner <heiko@sntech.de> | 2012-01-31 06:06:07 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-01-31 06:06:27 -0500 |
commit | f35ef7cab2db0a8b577bef59122b59220efdac44 (patch) | |
tree | 0e15507c053b78f7a9fa1bb2d891fb428d1e93f1 | |
parent | 0f78b2443a654afad7c5efdf0157c80747078682 (diff) |
ARM: S3C24XX: move spi-s3c24xx platdata out of mach
spi.h now only contains the definition of the platform data structure
for the driver in spi-s3c24xx.c . Therefore it does not need to stay
in include/mach but can instead live in linux/spi/s3c24xx.h .
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r-- | arch/arm/mach-s3c2440/mach-gta02.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-s3c24xx.c | 2 | ||||
-rw-r--r-- | include/linux/spi/s3c24xx.h (renamed from arch/arm/mach-s3c2410/include/mach/spi.h) | 9 |
3 files changed, 6 insertions, 7 deletions
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c index 5859e609d28c..cf270f51d149 100644 --- a/arch/arm/mach-s3c2440/mach-gta02.c +++ b/arch/arm/mach-s3c2440/mach-gta02.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include <linux/platform_device.h> | 38 | #include <linux/platform_device.h> |
39 | #include <linux/serial_core.h> | 39 | #include <linux/serial_core.h> |
40 | #include <linux/spi/spi.h> | 40 | #include <linux/spi/spi.h> |
41 | #include <linux/spi/s3c24xx.h> | ||
41 | 42 | ||
42 | #include <linux/mmc/host.h> | 43 | #include <linux/mmc/host.h> |
43 | 44 | ||
@@ -73,7 +74,6 @@ | |||
73 | #include <mach/regs-gpioj.h> | 74 | #include <mach/regs-gpioj.h> |
74 | #include <mach/fb.h> | 75 | #include <mach/fb.h> |
75 | 76 | ||
76 | #include <mach/spi.h> | ||
77 | #include <plat/usb-control.h> | 77 | #include <plat/usb-control.h> |
78 | #include <mach/regs-mem.h> | 78 | #include <mach/regs-mem.h> |
79 | #include <mach/hardware.h> | 79 | #include <mach/hardware.h> |
diff --git a/drivers/spi/spi-s3c24xx.c b/drivers/spi/spi-s3c24xx.c index fc064535f4fc..8ee7d790ce49 100644 --- a/drivers/spi/spi-s3c24xx.c +++ b/drivers/spi/spi-s3c24xx.c | |||
@@ -24,10 +24,10 @@ | |||
24 | 24 | ||
25 | #include <linux/spi/spi.h> | 25 | #include <linux/spi/spi.h> |
26 | #include <linux/spi/spi_bitbang.h> | 26 | #include <linux/spi/spi_bitbang.h> |
27 | #include <linux/spi/s3c24xx.h> | ||
27 | #include <linux/module.h> | 28 | #include <linux/module.h> |
28 | 29 | ||
29 | #include <plat/regs-spi.h> | 30 | #include <plat/regs-spi.h> |
30 | #include <mach/spi.h> | ||
31 | 31 | ||
32 | #include <plat/fiq.h> | 32 | #include <plat/fiq.h> |
33 | #include <asm/fiq.h> | 33 | #include <asm/fiq.h> |
diff --git a/arch/arm/mach-s3c2410/include/mach/spi.h b/include/linux/spi/s3c24xx.h index 2a686c0751ce..c23b923e493b 100644 --- a/arch/arm/mach-s3c2410/include/mach/spi.h +++ b/include/linux/spi/s3c24xx.h | |||
@@ -1,5 +1,4 @@ | |||
1 | /* arch/arm/mach-s3c2410/include/mach/spi.h | 1 | /* |
2 | * | ||
3 | * Copyright (c) 2006 Simtec Electronics | 2 | * Copyright (c) 2006 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 3 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 4 | * |
@@ -10,8 +9,8 @@ | |||
10 | * published by the Free Software Foundation. | 9 | * published by the Free Software Foundation. |
11 | */ | 10 | */ |
12 | 11 | ||
13 | #ifndef __ASM_ARCH_SPI_H | 12 | #ifndef __LINUX_SPI_S3C24XX_H |
14 | #define __ASM_ARCH_SPI_H __FILE__ | 13 | #define __LINUX_SPI_S3C24XX_H __FILE__ |
15 | 14 | ||
16 | struct s3c2410_spi_info { | 15 | struct s3c2410_spi_info { |
17 | int pin_cs; /* simple gpio cs */ | 16 | int pin_cs; /* simple gpio cs */ |
@@ -24,4 +23,4 @@ struct s3c2410_spi_info { | |||
24 | void (*set_cs)(struct s3c2410_spi_info *spi, int cs, int pol); | 23 | void (*set_cs)(struct s3c2410_spi_info *spi, int cs, int pol); |
25 | }; | 24 | }; |
26 | 25 | ||
27 | #endif /* __ASM_ARCH_SPI_H */ | 26 | #endif /* __LINUX_SPI_S3C24XX_H */ |