Skip to content

Commit

Permalink
ARM: l2x0: add empty l2x0_of_init
Browse files Browse the repository at this point in the history
Add empty version of l2x0_of_init for when CONFIG_CACHE_L2X0 is not selected.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Barry Song <21cnbao@gmail.com>
Reviewed-by: Shawn Guo <shawn.guo@linaro.org>
  • Loading branch information
Rob Herring authored and Arnd Bergmann committed Oct 31, 2011
1 parent 09fa31a commit fae2b89
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion arch/arm/include/asm/hardware/cache-l2x0.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,14 @@

#ifndef __ASSEMBLY__
extern void __init l2x0_init(void __iomem *base, __u32 aux_val, __u32 aux_mask);
#if defined(CONFIG_CACHE_L2X0) && defined(CONFIG_OF)
extern int l2x0_of_init(__u32 aux_val, __u32 aux_mask);
#else
static inline int l2x0_of_init(__u32 aux_val, __u32 aux_mask)
{
return -ENODEV;
}
#endif

struct l2x0_regs {
unsigned long phy_base;
Expand All @@ -121,6 +128,6 @@ struct l2x0_regs {

extern struct l2x0_regs l2x0_saved_regs;

#endif
#endif /* __ASSEMBLY__ */

#endif

0 comments on commit fae2b89

Please sign in to comment.