]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] 4xx: Fix compiler warning on DCR_NATIVE only builds
authorJosh Boyer <jwboyer@linux.vnet.ibm.com>
Tue, 20 May 2008 12:59:23 +0000 (07:59 -0500)
committerJosh Boyer <jwboyer@linux.vnet.ibm.com>
Thu, 29 May 2008 12:06:56 +0000 (07:06 -0500)
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>
arch/powerpc/sysdev/dcr.c

index 5f39a79b066013b3a94efc3e9b68ad5f0121f4ae..a8ba9983dd5a8ab0ccc8e04bd82816796e02282b 100644 (file)
@@ -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;
@@ -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)