diff options
Diffstat (limited to 'arch/mips/include/asm/spram.h')
| -rw-r--r-- | arch/mips/include/asm/spram.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/mips/include/asm/spram.h b/arch/mips/include/asm/spram.h index 0b89006e4907..9f6a2cb1943a 100644 --- a/arch/mips/include/asm/spram.h +++ b/arch/mips/include/asm/spram.h @@ -1,10 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _MIPS_SPRAM_H #define _MIPS_SPRAM_H -#ifdef CONFIG_CPU_MIPSR2 -extern __init void spram_config(void); +#if defined(CONFIG_MIPS_SPRAM) +extern void spram_config(void); #else -static inline void spram_config(void) { }; -#endif /* CONFIG_CPU_MIPSR2 */ +static inline void spram_config(void) { } +#endif /* CONFIG_MIPS_SPRAM */ #endif /* _MIPS_SPRAM_H */ |
