9
0
Fork 0

ARM l2x0: make init function static inline if l2 is not available

So that the ifdeffery can be moved out of the board code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2011-07-29 11:43:46 +02:00 committed by Jean-Christophe PLAGNIOL-VILLARD
parent 5f56079cd5
commit d77ef33347
1 changed files with 6 additions and 0 deletions

View File

@ -60,7 +60,13 @@ static inline void dma_inv_range(unsigned long s, unsigned long e)
#endif
#ifdef CONFIG_CACHE_L2X0
void __init l2x0_init(void __iomem *base, __u32 aux_val, __u32 aux_mask);
#else
static inline void __init l2x0_init(void __iomem *base, __u32 aux_val, __u32 aux_mask)
{
}
#endif
struct outer_cache_fns {
void (*inv_range)(unsigned long, unsigned long);