[POWERPC] 4xx: Fix compiler warning on DCR_NATIVE only builds

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>
This commit is contained in:
Josh Boyer 2008-05-20 07:59:23 -05:00
parent 4ebef31fa6
commit 0723abd0b2
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/dcr.h> #include <asm/dcr.h>
#ifdef CONFIG_PPC_DCR_MMIO
static struct device_node *find_dcr_parent(struct device_node *node) static struct device_node *find_dcr_parent(struct device_node *node)
{ {
struct device_node *par, *tmp; struct device_node *par, *tmp;
@ -41,6 +42,7 @@ static struct device_node *find_dcr_parent(struct device_node *node)
} }
return par; return par;
} }
#endif
#if defined(CONFIG_PPC_DCR_NATIVE) && defined(CONFIG_PPC_DCR_MMIO) #if defined(CONFIG_PPC_DCR_NATIVE) && defined(CONFIG_PPC_DCR_MMIO)