Skip to content

Commit

Permalink
[POWERPC] 4xx: Fix compiler warning on DCR_NATIVE only builds
Browse files Browse the repository at this point in the history
With the recent DCR code rework, we get a compiler warning about
find_dcr_parent being defined but not used.  This fixes it by only defining
the function if CONFIG_PPC_DCR_MMIO is set.

Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
  • Loading branch information
Josh Boyer committed May 29, 2008
1 parent 4ebef31 commit 0723abd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/sysdev/dcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <asm/prom.h>
#include <asm/dcr.h>

#ifdef CONFIG_PPC_DCR_MMIO
static struct device_node *find_dcr_parent(struct device_node *node)
{
struct device_node *par, *tmp;
Expand All @@ -41,6 +42,7 @@ static struct device_node *find_dcr_parent(struct device_node *node)
}
return par;
}
#endif

#if defined(CONFIG_PPC_DCR_NATIVE) && defined(CONFIG_PPC_DCR_MMIO)

Expand Down

0 comments on commit 0723abd

Please sign in to comment.