diff options
author | John Crispin <blogic@openwrt.org> | 2013-04-11 01:34:59 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-05-07 19:19:07 -0400 |
commit | 9169a5d01114c930a0494f9160da8c334d71680d (patch) | |
tree | c050c4650a3395076beeba4fb0a7aa33a4252830 /arch/mips/include | |
parent | d41d547a419ca2d4df867a40a553abfe0c3df1d6 (diff) |
MIPS: move mips_{set,get}_machine_name() to a more generic place
Previously this functionality was only available to users of the mips_machine
api. Moving the code to prom.c allows us to also add a OF wrapper.
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/5164/
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/mips_machine.h | 4 | ||||
-rw-r--r-- | arch/mips/include/asm/prom.h | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/arch/mips/include/asm/mips_machine.h b/arch/mips/include/asm/mips_machine.h index 363bb352c7f7..9d00aebe9842 100644 --- a/arch/mips/include/asm/mips_machine.h +++ b/arch/mips/include/asm/mips_machine.h | |||
@@ -42,13 +42,9 @@ extern long __mips_machines_end; | |||
42 | #ifdef CONFIG_MIPS_MACHINE | 42 | #ifdef CONFIG_MIPS_MACHINE |
43 | int mips_machtype_setup(char *id) __init; | 43 | int mips_machtype_setup(char *id) __init; |
44 | void mips_machine_setup(void) __init; | 44 | void mips_machine_setup(void) __init; |
45 | void mips_set_machine_name(const char *name) __init; | ||
46 | char *mips_get_machine_name(void); | ||
47 | #else | 45 | #else |
48 | static inline int mips_machtype_setup(char *id) { return 1; } | 46 | static inline int mips_machtype_setup(char *id) { return 1; } |
49 | static inline void mips_machine_setup(void) { } | 47 | static inline void mips_machine_setup(void) { } |
50 | static inline void mips_set_machine_name(const char *name) { } | ||
51 | static inline char *mips_get_machine_name(void) { return NULL; } | ||
52 | #endif /* CONFIG_MIPS_MACHINE */ | 48 | #endif /* CONFIG_MIPS_MACHINE */ |
53 | 49 | ||
54 | #endif /* __ASM_MIPS_MACHINE_H */ | 50 | #endif /* __ASM_MIPS_MACHINE_H */ |
diff --git a/arch/mips/include/asm/prom.h b/arch/mips/include/asm/prom.h index 8808bf548b99..1e7e0961064b 100644 --- a/arch/mips/include/asm/prom.h +++ b/arch/mips/include/asm/prom.h | |||
@@ -48,4 +48,7 @@ extern void __dt_setup_arch(struct boot_param_header *bph); | |||
48 | static inline void device_tree_init(void) { } | 48 | static inline void device_tree_init(void) { } |
49 | #endif /* CONFIG_OF */ | 49 | #endif /* CONFIG_OF */ |
50 | 50 | ||
51 | extern char *mips_get_machine_name(void); | ||
52 | extern void mips_set_machine_name(const char *name); | ||
53 | |||
51 | #endif /* __ASM_PROM_H */ | 54 | #endif /* __ASM_PROM_H */ |