diff options
author | Magnus Damm <damm@opensource.se> | 2014-02-17 02:35:08 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2014-04-13 22:28:23 -0400 |
commit | 505891ec2558771cd84fe00fc1646275b4c069ed (patch) | |
tree | 42dc87491fb6c37a0928c1ef2c83093934a9170f /arch/arm/mach-shmobile | |
parent | 094c62c3313e1a1c7929a2f69c07ba3382c358e4 (diff) |
ARM: shmobile: Remove EMEV2 header file
There is no C board code left for the EMEV2 SoC, so
get rid of the emev2.h include file to save some lines.
While at it make functions static.
Signed-off-by: Magnus Damm <damm@opensource.se>
[horms+renesas@verge.net.au: Resolved conflict]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/emev2.h | 8 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-emev2.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/smp-emev2.c | 1 |
3 files changed, 4 insertions, 12 deletions
diff --git a/arch/arm/mach-shmobile/include/mach/emev2.h b/arch/arm/mach-shmobile/include/mach/emev2.h deleted file mode 100644 index d64e188a9755..000000000000 --- a/arch/arm/mach-shmobile/include/mach/emev2.h +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | #ifndef __ASM_EMEV2_H__ | ||
2 | #define __ASM_EMEV2_H__ | ||
3 | |||
4 | extern void emev2_map_io(void); | ||
5 | extern void emev2_init_delay(void); | ||
6 | extern struct smp_operations emev2_smp_ops; | ||
7 | |||
8 | #endif /* __ASM_EMEV2_H__ */ | ||
diff --git a/arch/arm/mach-shmobile/setup-emev2.c b/arch/arm/mach-shmobile/setup-emev2.c index b15a0ed769fe..d953ff6e78a2 100644 --- a/arch/arm/mach-shmobile/setup-emev2.c +++ b/arch/arm/mach-shmobile/setup-emev2.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
22 | #include <linux/of_platform.h> | 22 | #include <linux/of_platform.h> |
23 | #include <mach/common.h> | 23 | #include <mach/common.h> |
24 | #include <mach/emev2.h> | ||
25 | #include <asm/mach-types.h> | 24 | #include <asm/mach-types.h> |
26 | #include <asm/mach/arch.h> | 25 | #include <asm/mach/arch.h> |
27 | #include <asm/mach/map.h> | 26 | #include <asm/mach/map.h> |
@@ -38,12 +37,12 @@ static struct map_desc emev2_io_desc[] __initdata = { | |||
38 | #endif | 37 | #endif |
39 | }; | 38 | }; |
40 | 39 | ||
41 | void __init emev2_map_io(void) | 40 | static void __init emev2_map_io(void) |
42 | { | 41 | { |
43 | iotable_init(emev2_io_desc, ARRAY_SIZE(emev2_io_desc)); | 42 | iotable_init(emev2_io_desc, ARRAY_SIZE(emev2_io_desc)); |
44 | } | 43 | } |
45 | 44 | ||
46 | void __init emev2_init_delay(void) | 45 | static void __init emev2_init_delay(void) |
47 | { | 46 | { |
48 | shmobile_setup_delay(533, 1, 3); /* Cortex-A9 @ 533MHz */ | 47 | shmobile_setup_delay(533, 1, 3); /* Cortex-A9 @ 533MHz */ |
49 | } | 48 | } |
@@ -59,6 +58,8 @@ static const char *emev2_boards_compat_dt[] __initconst = { | |||
59 | NULL, | 58 | NULL, |
60 | }; | 59 | }; |
61 | 60 | ||
61 | extern struct smp_operations emev2_smp_ops; | ||
62 | |||
62 | DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)") | 63 | DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)") |
63 | .smp = smp_ops(emev2_smp_ops), | 64 | .smp = smp_ops(emev2_smp_ops), |
64 | .map_io = emev2_map_io, | 65 | .map_io = emev2_map_io, |
diff --git a/arch/arm/mach-shmobile/smp-emev2.c b/arch/arm/mach-shmobile/smp-emev2.c index f2ca92308f75..2dfd748da7f3 100644 --- a/arch/arm/mach-shmobile/smp-emev2.c +++ b/arch/arm/mach-shmobile/smp-emev2.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <linux/io.h> | 24 | #include <linux/io.h> |
25 | #include <linux/delay.h> | 25 | #include <linux/delay.h> |
26 | #include <mach/common.h> | 26 | #include <mach/common.h> |
27 | #include <mach/emev2.h> | ||
28 | #include <asm/smp_plat.h> | 27 | #include <asm/smp_plat.h> |
29 | #include <asm/smp_scu.h> | 28 | #include <asm/smp_scu.h> |
30 | 29 | ||