diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-05-03 03:26:52 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-07 06:31:14 -0400 |
commit | 55b61fec22caa3e7872caea6c4100fc75cb8f49b (patch) | |
tree | 995c2cf733bbd9ee1adc6e77773b0e31e9c21267 /arch/powerpc/kernel/legacy_serial.c | |
parent | d9333afd6a714760c13f76ba275a32ec7bd979c1 (diff) |
[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>
Diffstat (limited to 'arch/powerpc/kernel/legacy_serial.c')
-rw-r--r-- | arch/powerpc/kernel/legacy_serial.c | 14 |
1 files changed, 7 insertions, 7 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); |