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:
parent
5f56079cd5
commit
d77ef33347
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue