[POWERPC] Rename device_is_compatible to of_device_is_compatible
for consistency with other Open Firmware interfaces (and Sparc). This is just a straight replacement. This leaves the compatibility define in place. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:

committed by
Paul Mackerras

parent
d9333afd6a
commit
55b61fec22
@@ -477,7 +477,7 @@ static int xics_host_match(struct irq_host *h, struct device_node *node)
|
||||
* like vdevices, events, etc... The trick we use here is to match
|
||||
* everything here except the legacy 8259 which is compatible "chrp,iic"
|
||||
*/
|
||||
return !device_is_compatible(node, "chrp,iic");
|
||||
return !of_device_is_compatible(node, "chrp,iic");
|
||||
}
|
||||
|
||||
static int xics_host_map_direct(struct irq_host *h, unsigned int virq,
|
||||
@@ -618,7 +618,7 @@ static void __init xics_setup_8259_cascade(void)
|
||||
unsigned long intack = 0;
|
||||
|
||||
for_each_node_by_type(np, "interrupt-controller")
|
||||
if (device_is_compatible(np, "chrp,iic")) {
|
||||
if (of_device_is_compatible(np, "chrp,iic")) {
|
||||
found = np;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user