Skip to content

Commit

Permalink
ARM: move outer_cache declaration out of ifdef
Browse files Browse the repository at this point in the history
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: Rob Herring <rob.herring@calxeda.com>
Cc: Russell King <linux@arm.linux.org.uk>
  • Loading branch information
Rob Herring committed Aug 23, 2013
1 parent 62b4d60 commit 0b53c11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/include/asm/outercache.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ struct outer_cache_fns {
void (*resume)(void);
};

#ifdef CONFIG_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)
{
if (outer_cache.inv_range)
Expand Down

0 comments on commit 0b53c11

Please sign in to comment.