Skip to content

Commit

Permalink
ARM: 7179/1: nomadik: localize cpu-8815 header
Browse files Browse the repository at this point in the history
The symbols from cpu-8815.c were being broadcast across the
entire kernel but are only really used locally in mach-nomadik
so let's localize them.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Linus Walleij authored and Russell King committed Nov 30, 2011
1 parent 3f1517a commit 61b3875
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-nomadik/board-nhk8815.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
#include <mach/nand.h>
#include <mach/fsmc.h>

#include "cpu-8815.h"

/* Initial value for SRC control register: all timers use MXTAL/8 source */
#define SRC_CR_INIT_MASK 0x00007fff
#define SRC_CR_INIT_VAL 0x2aaa8000
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-nomadik/cpu-8815.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <asm/hardware/cache-l2x0.h>

#include "clock.h"
#include "cpu-8815.h"

#define __MEM_4K_RESOURCE(x) \
.res = {.start = (x), .end = (x) + SZ_4K - 1, .flags = IORESOURCE_MEM}
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/mach-nomadik/cpu-8815.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
extern void cpu8815_map_io(void);
extern void cpu8815_platform_init(void);
extern void cpu8815_init_irq(void);
3 changes: 0 additions & 3 deletions arch/arm/mach-nomadik/include/mach/setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@

#ifdef CONFIG_NOMADIK_8815

extern void cpu8815_map_io(void);
extern void cpu8815_platform_init(void);
extern void cpu8815_init_irq(void);
extern void nmdk_timer_init(void);

#endif /* NOMADIK_8815 */
Expand Down

0 comments on commit 61b3875

Please sign in to comment.