diff options
author | Aaro Koskinen <aaro.koskinen@nsn.com> | 2014-09-08 11:25:43 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-11-24 01:45:32 -0500 |
commit | da85e364952870db52625c4de7a4b5dfaf74d211 (patch) | |
tree | d248e5887d5a1243d039666a7ab201aa89f95170 /arch/mips | |
parent | 653e0528810280106b0ceb4c6988e6263ede852b (diff) |
MIPS: Octeon: Mark octeon_model_get_string() with __init
Mark octeon_model_get_string() with __init and make internal functions
static.
Signed-off-by: Aaro Koskinen <aaro.koskinen@nsn.com>
Cc: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7668/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/cavium-octeon/executive/octeon-model.c | 7 | ||||
-rw-r--r-- | arch/mips/include/asm/octeon/cvmx.h | 2 | ||||
-rw-r--r-- | arch/mips/include/asm/octeon/octeon-model.h | 3 |
3 files changed, 5 insertions, 7 deletions
diff --git a/arch/mips/cavium-octeon/executive/octeon-model.c b/arch/mips/cavium-octeon/executive/octeon-model.c index 5105d0d57154..e15b049b3bd7 100644 --- a/arch/mips/cavium-octeon/executive/octeon-model.c +++ b/arch/mips/cavium-octeon/executive/octeon-model.c | |||
@@ -33,7 +33,7 @@ | |||
33 | * | 33 | * |
34 | * Returns fuse value: 0 or 1 | 34 | * Returns fuse value: 0 or 1 |
35 | */ | 35 | */ |
36 | uint8_t cvmx_fuse_read_byte(int byte_addr) | 36 | static uint8_t __init cvmx_fuse_read_byte(int byte_addr) |
37 | { | 37 | { |
38 | union cvmx_mio_fus_rcmd read_cmd; | 38 | union cvmx_mio_fus_rcmd read_cmd; |
39 | 39 | ||
@@ -52,7 +52,8 @@ uint8_t cvmx_fuse_read_byte(int byte_addr) | |||
52 | * as running early in u-boot static/global variables don't work when | 52 | * as running early in u-boot static/global variables don't work when |
53 | * running from flash. | 53 | * running from flash. |
54 | */ | 54 | */ |
55 | const char *octeon_model_get_string_buffer(uint32_t chip_id, char *buffer) | 55 | static const char *__init octeon_model_get_string_buffer(uint32_t chip_id, |
56 | char *buffer) | ||
56 | { | 57 | { |
57 | const char *family; | 58 | const char *family; |
58 | const char *core_model; | 59 | const char *core_model; |
@@ -422,7 +423,7 @@ const char *octeon_model_get_string_buffer(uint32_t chip_id, char *buffer) | |||
422 | * | 423 | * |
423 | * Returns Model string | 424 | * Returns Model string |
424 | */ | 425 | */ |
425 | const char *octeon_model_get_string(uint32_t chip_id) | 426 | const char *__init octeon_model_get_string(uint32_t chip_id) |
426 | { | 427 | { |
427 | static char buffer[32]; | 428 | static char buffer[32]; |
428 | return octeon_model_get_string_buffer(chip_id, buffer); | 429 | return octeon_model_get_string_buffer(chip_id, buffer); |
diff --git a/arch/mips/include/asm/octeon/cvmx.h b/arch/mips/include/asm/octeon/cvmx.h index b0b544f96b70..33db1c806b01 100644 --- a/arch/mips/include/asm/octeon/cvmx.h +++ b/arch/mips/include/asm/octeon/cvmx.h | |||
@@ -451,6 +451,4 @@ static inline uint32_t cvmx_octeon_num_cores(void) | |||
451 | return cvmx_pop(ciu_fuse); | 451 | return cvmx_pop(ciu_fuse); |
452 | } | 452 | } |
453 | 453 | ||
454 | uint8_t cvmx_fuse_read_byte(int byte_addr); | ||
455 | |||
456 | #endif /* __CVMX_H__ */ | 454 | #endif /* __CVMX_H__ */ |
diff --git a/arch/mips/include/asm/octeon/octeon-model.h b/arch/mips/include/asm/octeon/octeon-model.h index e2c122c6a657..e8a1c2fd52cd 100644 --- a/arch/mips/include/asm/octeon/octeon-model.h +++ b/arch/mips/include/asm/octeon/octeon-model.h | |||
@@ -326,8 +326,7 @@ static inline int __octeon_is_model_runtime__(uint32_t model) | |||
326 | #define OCTEON_IS_COMMON_BINARY() 1 | 326 | #define OCTEON_IS_COMMON_BINARY() 1 |
327 | #undef OCTEON_MODEL | 327 | #undef OCTEON_MODEL |
328 | 328 | ||
329 | const char *octeon_model_get_string(uint32_t chip_id); | 329 | const char *__init octeon_model_get_string(uint32_t chip_id); |
330 | const char *octeon_model_get_string_buffer(uint32_t chip_id, char *buffer); | ||
331 | 330 | ||
332 | /* | 331 | /* |
333 | * Return the octeon family, i.e., ProcessorID of the PrID register. | 332 | * Return the octeon family, i.e., ProcessorID of the PrID register. |