aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/legacy_serial.c14
-rw-r--r--arch/powerpc/kernel/of_device.c2
-rw-r--r--arch/powerpc/kernel/vio.c2
3 files changed, 9 insertions, 9 deletions
diff --git a/arch/powerpc/kernel/legacy_serial.c b/arch/powerpc/kernel/legacy_serial.c
index 63dd2c3ad95e..662cd67428de 100644
--- a/arch/powerpc/kernel/legacy_serial.c
+++ b/arch/powerpc/kernel/legacy_serial.c
@@ -243,9 +243,9 @@ static int __init add_legacy_pci_port(struct device_node *np,
243 * doesn't work for these settings, you'll have to add your own special 243 * doesn't work for these settings, you'll have to add your own special
244 * cases here 244 * cases here
245 */ 245 */
246 if (device_is_compatible(pci_dev, "pci13a8,152") || 246 if (of_device_is_compatible(pci_dev, "pci13a8,152") ||
247 device_is_compatible(pci_dev, "pci13a8,154") || 247 of_device_is_compatible(pci_dev, "pci13a8,154") ||
248 device_is_compatible(pci_dev, "pci13a8,158")) { 248 of_device_is_compatible(pci_dev, "pci13a8,158")) {
249 addr += 0x200 * lindex; 249 addr += 0x200 * lindex;
250 base += 0x200 * lindex; 250 base += 0x200 * lindex;
251 } else { 251 } else {
@@ -364,11 +364,11 @@ void __init find_legacy_serial_ports(void)
364 /* Check for known pciclass, and also check wether we have 364 /* Check for known pciclass, and also check wether we have
365 * a device with child nodes for ports or not 365 * a device with child nodes for ports or not
366 */ 366 */
367 if (device_is_compatible(np, "pciclass,0700") || 367 if (of_device_is_compatible(np, "pciclass,0700") ||
368 device_is_compatible(np, "pciclass,070002")) 368 of_device_is_compatible(np, "pciclass,070002"))
369 pci = np; 369 pci = np;
370 else if (device_is_compatible(parent, "pciclass,0700") || 370 else if (of_device_is_compatible(parent, "pciclass,0700") ||
371 device_is_compatible(parent, "pciclass,070002")) 371 of_device_is_compatible(parent, "pciclass,070002"))
372 pci = parent; 372 pci = parent;
373 else { 373 else {
374 of_node_put(parent); 374 of_node_put(parent);
diff --git a/arch/powerpc/kernel/of_device.c b/arch/powerpc/kernel/of_device.c
index 0c8ea7659d92..e2c765f5f3f4 100644
--- a/arch/powerpc/kernel/of_device.c
+++ b/arch/powerpc/kernel/of_device.c
@@ -27,7 +27,7 @@ const struct of_device_id *of_match_node(const struct of_device_id *matches,
27 match &= node->type 27 match &= node->type
28 && !strcmp(matches->type, node->type); 28 && !strcmp(matches->type, node->type);
29 if (matches->compatible[0]) 29 if (matches->compatible[0])
30 match &= device_is_compatible(node, 30 match &= of_device_is_compatible(node,
31 matches->compatible); 31 matches->compatible);
32 if (match) 32 if (match)
33 return matches; 33 return matches;
diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c
index 9eaefac5053f..ec871063733a 100644
--- a/arch/powerpc/kernel/vio.c
+++ b/arch/powerpc/kernel/vio.c
@@ -117,7 +117,7 @@ static const struct vio_device_id *vio_match_device(
117{ 117{
118 while (ids->type[0] != '\0') { 118 while (ids->type[0] != '\0') {
119 if ((strncmp(dev->type, ids->type, strlen(ids->type)) == 0) && 119 if ((strncmp(dev->type, ids->type, strlen(ids->type)) == 0) &&
120 device_is_compatible(dev->dev.archdata.of_node, 120 of_device_is_compatible(dev->dev.archdata.of_node,
121 ids->compat)) 121 ids->compat))
122 return ids; 122 return ids;
123 ids++; 123 ids++;