Skip to content

Commit fae2b89

Browse files
Rob Herringarndb
authored andcommitted
ARM: l2x0: add empty l2x0_of_init
Add empty version of l2x0_of_init for when CONFIG_CACHE_L2X0 is not selected. Signed-off-by: Rob Herring <[email protected]> Acked-by: Barry Song <[email protected]> Reviewed-by: Shawn Guo <[email protected]>
1 parent 09fa31a commit fae2b89

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

arch/arm/include/asm/hardware/cache-l2x0.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,14 @@
102102

103103
#ifndef __ASSEMBLY__
104104
extern void __init l2x0_init(void __iomem *base, __u32 aux_val, __u32 aux_mask);
105+
#if defined(CONFIG_CACHE_L2X0) && defined(CONFIG_OF)
105106
extern int l2x0_of_init(__u32 aux_val, __u32 aux_mask);
107+
#else
108+
static inline int l2x0_of_init(__u32 aux_val, __u32 aux_mask)
109+
{
110+
return -ENODEV;
111+
}
112+
#endif
106113

107114
struct l2x0_regs {
108115
unsigned long phy_base;
@@ -121,6 +128,6 @@ struct l2x0_regs {
121128

122129
extern struct l2x0_regs l2x0_saved_regs;
123130

124-
#endif
131+
#endif /* __ASSEMBLY__ */
125132

126133
#endif

0 commit comments

Comments
 (0)