diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-02-14 19:24:29 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2014-02-14 19:24:29 -0500 |
commit | d93c3ba91a4345df64ab03bd273a85b82c60b9d2 (patch) | |
tree | bf3a82cd3e77c91b3bb327da1235269ccaf84194 /arch | |
parent | e6b07ee8d5d9d55a33edf2201954fc33459a43c6 (diff) |
ARM: S3C24XX: Move rtc-core.h from plat to mach
plat/rtc-core.h is only referenced from mach-s3c24xx. Hence
move it there to de-populate the plat directory. While at it
also do some cleanup of the header file.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-s3c24xx/include/mach/rtc-core.h (renamed from arch/arm/plat-samsung/include/plat/rtc-core.h) | 13 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/s3c2416.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/s3c2443.c | 2 |
3 files changed, 8 insertions, 9 deletions
diff --git a/arch/arm/plat-samsung/include/plat/rtc-core.h b/arch/arm/mach-s3c24xx/include/mach/rtc-core.h index 7b542f7b7938..4d5f5768f700 100644 --- a/arch/arm/plat-samsung/include/plat/rtc-core.h +++ b/arch/arm/mach-s3c24xx/include/mach/rtc-core.h | |||
@@ -1,5 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-samsung/include/plat/rtc-core.h | 1 | /* |
2 | * | ||
3 | * Copyright (c) 2011 Heiko Stuebner <heiko@sntech.de> | 2 | * Copyright (c) 2011 Heiko Stuebner <heiko@sntech.de> |
4 | * | 3 | * |
5 | * Samsung RTC Controller core functions | 4 | * Samsung RTC Controller core functions |
@@ -9,19 +8,19 @@ | |||
9 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
10 | */ | 9 | */ |
11 | 10 | ||
12 | #ifndef __ASM_PLAT_RTC_CORE_H | 11 | #ifndef __RTC_CORE_H |
13 | #define __ASM_PLAT_RTC_CORE_H __FILE__ | 12 | #define __RTC_CORE_H __FILE__ |
14 | 13 | ||
15 | /* These functions are only for use with the core support code, such as | 14 | /* These functions are only for use with the core support code, such as |
16 | * the cpu specific initialisation code | 15 | * the cpu specific initialisation code |
17 | */ | 16 | */ |
18 | 17 | ||
18 | extern struct platform_device s3c_device_rtc; | ||
19 | |||
19 | /* re-define device name depending on support. */ | 20 | /* re-define device name depending on support. */ |
20 | static inline void s3c_rtc_setname(char *name) | 21 | static inline void s3c_rtc_setname(char *name) |
21 | { | 22 | { |
22 | #if defined(CONFIG_S3C_DEV_RTC) || defined(CONFIG_PLAT_S3C24XX) | ||
23 | s3c_device_rtc.name = name; | 23 | s3c_device_rtc.name = name; |
24 | #endif | ||
25 | } | 24 | } |
26 | 25 | ||
27 | #endif /* __ASM_PLAT_RTC_CORE_H */ | 26 | #endif /* __RTC_CORE_H */ |
diff --git a/arch/arm/mach-s3c24xx/s3c2416.c b/arch/arm/mach-s3c24xx/s3c2416.c index 8e01b4f2df35..9fe260ae11e1 100644 --- a/arch/arm/mach-s3c24xx/s3c2416.c +++ b/arch/arm/mach-s3c24xx/s3c2416.c | |||
@@ -48,6 +48,7 @@ | |||
48 | #include <asm/system_misc.h> | 48 | #include <asm/system_misc.h> |
49 | 49 | ||
50 | #include <mach/regs-s3c2443-clock.h> | 50 | #include <mach/regs-s3c2443-clock.h> |
51 | #include <mach/rtc-core.h> | ||
51 | 52 | ||
52 | #include <plat/gpio-core.h> | 53 | #include <plat/gpio-core.h> |
53 | #include <plat/gpio-cfg.h> | 54 | #include <plat/gpio-cfg.h> |
@@ -61,7 +62,6 @@ | |||
61 | #include <plat/fb-core.h> | 62 | #include <plat/fb-core.h> |
62 | #include <plat/nand-core.h> | 63 | #include <plat/nand-core.h> |
63 | #include <plat/adc-core.h> | 64 | #include <plat/adc-core.h> |
64 | #include <plat/rtc-core.h> | ||
65 | #include <plat/spi-core.h> | 65 | #include <plat/spi-core.h> |
66 | 66 | ||
67 | #include "common.h" | 67 | #include "common.h" |
diff --git a/arch/arm/mach-s3c24xx/s3c2443.c b/arch/arm/mach-s3c24xx/s3c2443.c index 886c2147062b..c7a804d0348e 100644 --- a/arch/arm/mach-s3c24xx/s3c2443.c +++ b/arch/arm/mach-s3c24xx/s3c2443.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <asm/system_misc.h> | 34 | #include <asm/system_misc.h> |
35 | 35 | ||
36 | #include <mach/regs-s3c2443-clock.h> | 36 | #include <mach/regs-s3c2443-clock.h> |
37 | #include <mach/rtc-core.h> | ||
37 | 38 | ||
38 | #include <plat/gpio-core.h> | 39 | #include <plat/gpio-core.h> |
39 | #include <plat/gpio-cfg.h> | 40 | #include <plat/gpio-cfg.h> |
@@ -43,7 +44,6 @@ | |||
43 | #include <plat/fb-core.h> | 44 | #include <plat/fb-core.h> |
44 | #include <plat/nand-core.h> | 45 | #include <plat/nand-core.h> |
45 | #include <plat/adc-core.h> | 46 | #include <plat/adc-core.h> |
46 | #include <plat/rtc-core.h> | ||
47 | #include <plat/spi-core.h> | 47 | #include <plat/spi-core.h> |
48 | 48 | ||
49 | static struct map_desc s3c2443_iodesc[] __initdata = { | 49 | static struct map_desc s3c2443_iodesc[] __initdata = { |