diff options
author | Jan Luebbe <jlu@pengutronix.de> | 2012-09-11 13:43:27 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-09-11 15:54:49 +0200 |
commit | f1be4350b0f6489835080509e58c7481b047cb3f (patch) | |
tree | 9200e58d9ff4dd76e96450e65290eb0a14993390 | |
parent | 75831d168720aabd80da31c24677bf75c35bb1a9 (diff) | |
download | barebox-f1be4350b0f6489835080509e58c7481b047cb3f.tar.gz barebox-f1be4350b0f6489835080509e58c7481b047cb3f.tar.xz |
xload: make internal functions static
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/mach-omap/include/mach/xload.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap/xload.c | 8 |
2 files changed, 4 insertions, 7 deletions
diff --git a/arch/arm/mach-omap/include/mach/xload.h b/arch/arm/mach-omap/include/mach/xload.h index 26f1b68105..92944775c6 100644 --- a/arch/arm/mach-omap/include/mach/xload.h +++ b/arch/arm/mach-omap/include/mach/xload.h @@ -1,9 +1,6 @@ #ifndef _MACH_XLOAD_H #define _MACH_XLOAD_H -void *omap_xload_boot_nand(int offset); -void *omap_xload_boot_mmc(void); - enum omap_boot_src { OMAP_BOOTSRC_UNKNOWN, OMAP_BOOTSRC_MMC1, diff --git a/arch/arm/mach-omap/xload.c b/arch/arm/mach-omap/xload.c index 0afeea9ce5..18a90c9f22 100644 --- a/arch/arm/mach-omap/xload.c +++ b/arch/arm/mach-omap/xload.c @@ -9,7 +9,7 @@ #include <sizes.h> #include <filetype.h> -void *read_image_head(const char *name) +static void *read_image_head(const char *name) { void *header = xmalloc(ARM_HEAD_SIZE); struct cdev *cdev; @@ -32,7 +32,7 @@ void *read_image_head(const char *name) return header; } -unsigned int get_image_size(void *head) +static unsigned int get_image_size(void *head) { unsigned int ret = 0; unsigned int *psize = head + ARM_HEAD_SIZE_OFFSET; @@ -44,7 +44,7 @@ unsigned int get_image_size(void *head) return ret; } -void *omap_xload_boot_nand(int offset) +static void *omap_xload_boot_nand(int offset) { int ret; int size; @@ -81,7 +81,7 @@ void *omap_xload_boot_nand(int offset) return to; } -void *omap_xload_boot_mmc(void) +static void *omap_xload_boot_mmc(void) { int ret; void *buf; |