Commit 0b53c11d authored by Rob Herring's avatar Rob Herring

ARM: move outer_cache declaration out of ifdef

Move the outer_cache declaration of the CONFIG_OUTER_CACHE ifdef so that
outer_cache can be used inside IS_ENABLED condition.
Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
Cc: Russell King <linux@arm.linux.org.uk>
parent 62b4d605
...@@ -37,10 +37,10 @@ struct outer_cache_fns { ...@@ -37,10 +37,10 @@ struct outer_cache_fns {
void (*resume)(void); void (*resume)(void);
}; };
#ifdef CONFIG_OUTER_CACHE
extern struct outer_cache_fns outer_cache; extern struct outer_cache_fns outer_cache;
#ifdef CONFIG_OUTER_CACHE
static inline void outer_inv_range(phys_addr_t start, phys_addr_t end) static inline void outer_inv_range(phys_addr_t start, phys_addr_t end)
{ {
if (outer_cache.inv_range) if (outer_cache.inv_range)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment