提交 505891ec 编写于 作者: M Magnus Damm 提交者: Simon Horman

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: NMagnus Damm <damm@opensource.se>
[horms+renesas@verge.net.au: Resolved conflict]
Signed-off-by: NSimon Horman <horms+renesas@verge.net.au>
上级 094c62c3
#ifndef __ASM_EMEV2_H__
#define __ASM_EMEV2_H__
extern void emev2_map_io(void);
extern void emev2_init_delay(void);
extern struct smp_operations emev2_smp_ops;
#endif /* __ASM_EMEV2_H__ */
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/emev2.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/map.h> #include <asm/mach/map.h>
...@@ -38,12 +37,12 @@ static struct map_desc emev2_io_desc[] __initdata = { ...@@ -38,12 +37,12 @@ static struct map_desc emev2_io_desc[] __initdata = {
#endif #endif
}; };
void __init emev2_map_io(void) static void __init emev2_map_io(void)
{ {
iotable_init(emev2_io_desc, ARRAY_SIZE(emev2_io_desc)); iotable_init(emev2_io_desc, ARRAY_SIZE(emev2_io_desc));
} }
void __init emev2_init_delay(void) static void __init emev2_init_delay(void)
{ {
shmobile_setup_delay(533, 1, 3); /* Cortex-A9 @ 533MHz */ shmobile_setup_delay(533, 1, 3); /* Cortex-A9 @ 533MHz */
} }
...@@ -59,6 +58,8 @@ static const char *emev2_boards_compat_dt[] __initconst = { ...@@ -59,6 +58,8 @@ static const char *emev2_boards_compat_dt[] __initconst = {
NULL, NULL,
}; };
extern struct smp_operations emev2_smp_ops;
DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)") DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)")
.smp = smp_ops(emev2_smp_ops), .smp = smp_ops(emev2_smp_ops),
.map_io = emev2_map_io, .map_io = emev2_map_io,
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <linux/io.h> #include <linux/io.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/emev2.h>
#include <asm/smp_plat.h> #include <asm/smp_plat.h>
#include <asm/smp_scu.h> #include <asm/smp_scu.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册