[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
@@ -659,8 +659,8 @@ static int pmac_pci_probe_mode(struct pci_bus *bus)
|
||||
/* We need to use normal PCI probing for the AGP bus,
|
||||
* since the device for the AGP bridge isn't in the tree.
|
||||
*/
|
||||
if (bus->self == NULL && (device_is_compatible(node, "u3-agp") ||
|
||||
device_is_compatible(node, "u4-pcie")))
|
||||
if (bus->self == NULL && (of_device_is_compatible(node, "u3-agp") ||
|
||||
of_device_is_compatible(node, "u4-pcie")))
|
||||
return PCI_PROBE_NORMAL;
|
||||
return PCI_PROBE_DEVTREE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user