aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/sysdev/dcr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/dcr.c b/arch/powerpc/sysdev/dcr.c
index 5f39a79b0660..a8ba9983dd5a 100644
--- a/arch/powerpc/sysdev/dcr.c
+++ b/arch/powerpc/sysdev/dcr.c
@@ -23,6 +23,7 @@
23#include <asm/prom.h> 23#include <asm/prom.h>
24#include <asm/dcr.h> 24#include <asm/dcr.h>
25 25
26#ifdef CONFIG_PPC_DCR_MMIO
26static struct device_node *find_dcr_parent(struct device_node *node) 27static struct device_node *find_dcr_parent(struct device_node *node)
27{ 28{
28 struct device_node *par, *tmp; 29 struct device_node *par, *tmp;
@@ -41,6 +42,7 @@ static struct device_node *find_dcr_parent(struct device_node *node)
41 } 42 }
42 return par; 43 return par;
43} 44}
45#endif
44 46
45#if defined(CONFIG_PPC_DCR_NATIVE) && defined(CONFIG_PPC_DCR_MMIO) 47#if defined(CONFIG_PPC_DCR_NATIVE) && defined(CONFIG_PPC_DCR_MMIO)
46 48