diff options
Diffstat (limited to 'arch/microblaze/kernel/prom.c')
-rw-r--r-- | arch/microblaze/kernel/prom.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/microblaze/kernel/prom.c b/arch/microblaze/kernel/prom.c index d75c6253c0de..eb27bd3a39b4 100644 --- a/arch/microblaze/kernel/prom.c +++ b/arch/microblaze/kernel/prom.c | |||
@@ -50,25 +50,6 @@ typedef u32 cell_t; | |||
50 | /* export that to outside world */ | 50 | /* export that to outside world */ |
51 | struct device_node *of_chosen; | 51 | struct device_node *of_chosen; |
52 | 52 | ||
53 | int __init of_flat_dt_is_compatible(unsigned long node, const char *compat) | ||
54 | { | ||
55 | const char *cp; | ||
56 | unsigned long cplen, l; | ||
57 | |||
58 | cp = of_get_flat_dt_prop(node, "compatible", &cplen); | ||
59 | if (cp == NULL) | ||
60 | return 0; | ||
61 | while (cplen > 0) { | ||
62 | if (strncasecmp(cp, compat, strlen(compat)) == 0) | ||
63 | return 1; | ||
64 | l = strlen(cp) + 1; | ||
65 | cp += l; | ||
66 | cplen -= l; | ||
67 | } | ||
68 | |||
69 | return 0; | ||
70 | } | ||
71 | |||
72 | static void *__init unflatten_dt_alloc(unsigned long *mem, unsigned long size, | 53 | static void *__init unflatten_dt_alloc(unsigned long *mem, unsigned long size, |
73 | unsigned long align) | 54 | unsigned long align) |
74 | { | 55 | { |