diff options
Diffstat (limited to 'arch/powerpc/kernel/prom.c')
-rw-r--r-- | arch/powerpc/kernel/prom.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index cd0a2bfc978b..413e608863dd 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c | |||
@@ -80,25 +80,6 @@ extern rwlock_t devtree_lock; /* temporary while merging */ | |||
80 | /* export that to outside world */ | 80 | /* export that to outside world */ |
81 | struct device_node *of_chosen; | 81 | struct device_node *of_chosen; |
82 | 82 | ||
83 | int __init of_flat_dt_is_compatible(unsigned long node, const char *compat) | ||
84 | { | ||
85 | const char* cp; | ||
86 | unsigned long cplen, l; | ||
87 | |||
88 | cp = of_get_flat_dt_prop(node, "compatible", &cplen); | ||
89 | if (cp == NULL) | ||
90 | return 0; | ||
91 | while (cplen > 0) { | ||
92 | if (strncasecmp(cp, compat, strlen(compat)) == 0) | ||
93 | return 1; | ||
94 | l = strlen(cp) + 1; | ||
95 | cp += l; | ||
96 | cplen -= l; | ||
97 | } | ||
98 | |||
99 | return 0; | ||
100 | } | ||
101 | |||
102 | static void *__init unflatten_dt_alloc(unsigned long *mem, unsigned long size, | 83 | static void *__init unflatten_dt_alloc(unsigned long *mem, unsigned long size, |
103 | unsigned long align) | 84 | unsigned long align) |
104 | { | 85 | { |