aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/prom.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/prom.c')
-rw-r--r--arch/powerpc/kernel/prom.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index 6c9419a4d70a..c009d2155f9c 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -1057,31 +1057,6 @@ void __init early_init_devtree(void *params)
1057} 1057}
1058 1058
1059 1059
1060/** Checks if the given "compat" string matches one of the strings in
1061 * the device's "compatible" property
1062 */
1063int of_device_is_compatible(const struct device_node *device,
1064 const char *compat)
1065{
1066 const char* cp;
1067 int cplen, l;
1068
1069 cp = of_get_property(device, "compatible", &cplen);
1070 if (cp == NULL)
1071 return 0;
1072 while (cplen > 0) {
1073 if (strncasecmp(cp, compat, strlen(compat)) == 0)
1074 return 1;
1075 l = strlen(cp) + 1;
1076 cp += l;
1077 cplen -= l;
1078 }
1079
1080 return 0;
1081}
1082EXPORT_SYMBOL(of_device_is_compatible);
1083
1084
1085/** 1060/**
1086 * Indicates whether the root node has a given value in its 1061 * Indicates whether the root node has a given value in its
1087 * compatible property. 1062 * compatible property.