diff options
author | Greg Ungerer <gerg@linux-m68k.org> | 2016-09-05 08:23:50 +0300 |
---|---|---|
committer | Greg Ungerer <gerg@linux-m68k.org> | 2016-09-26 05:02:59 +0300 |
commit | aa5ac789bd96c7a6628a8167de562fa660f1f481 (patch) | |
tree | 3cba478fe5cc7c0eec6154dda3d37e7aa7bf77c7 /arch/m68k/include | |
parent | 2a744007c332f9d604b95aaecb106596c52ab001 (diff) | |
download | linux-aa5ac789bd96c7a6628a8167de562fa660f1f481.tar.xz |
m68k: generalize uboot command line support
The uboot command line support needs to be used by both MMU and no-MMU
setups, but currently we only have the code in the no-MMU code paths.
Move the uboot command line processing code into its own file. Add
appropriate calls to it from both the MMU and no-MMU arch setup code.
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/include')
-rw-r--r-- | arch/m68k/include/asm/bootinfo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/bootinfo.h b/arch/m68k/include/asm/bootinfo.h index 8e213267f8e7..81c91af8ec6c 100644 --- a/arch/m68k/include/asm/bootinfo.h +++ b/arch/m68k/include/asm/bootinfo.h @@ -22,6 +22,12 @@ extern void save_bootinfo(const struct bi_record *bi); static inline void save_bootinfo(const struct bi_record *bi) {} #endif +#ifdef CONFIG_UBOOT +void process_uboot_commandline(char *commandp, int size); +#else +static inline void process_uboot_commandline(char *commandp, int size) {} +#endif + #endif /* __ASSEMBLY__ */ |