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 /sound/aoa | |
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 'sound/aoa')
-rw-r--r-- | sound/aoa/codecs/snd-aoa-codec-onyx.c | 4 | ||||
-rw-r--r-- | sound/aoa/codecs/snd-aoa-codec-tas.c | 2 | ||||
-rw-r--r-- | sound/aoa/soundbus/i2sbus/i2sbus-core.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sound/aoa/codecs/snd-aoa-codec-onyx.c b/sound/aoa/codecs/snd-aoa-codec-onyx.c index 7f980be5d060..e91f9f66f395 100644 --- a/sound/aoa/codecs/snd-aoa-codec-onyx.c +++ b/sound/aoa/codecs/snd-aoa-codec-onyx.c | |||
@@ -1061,7 +1061,7 @@ static int onyx_i2c_attach(struct i2c_adapter *adapter) | |||
1061 | busnode = pmac_i2c_get_bus_node(bus); | 1061 | busnode = pmac_i2c_get_bus_node(bus); |
1062 | 1062 | ||
1063 | while ((dev = of_get_next_child(busnode, dev)) != NULL) { | 1063 | while ((dev = of_get_next_child(busnode, dev)) != NULL) { |
1064 | if (device_is_compatible(dev, "pcm3052")) { | 1064 | if (of_device_is_compatible(dev, "pcm3052")) { |
1065 | const u32 *addr; | 1065 | const u32 *addr; |
1066 | printk(KERN_DEBUG PFX "found pcm3052\n"); | 1066 | printk(KERN_DEBUG PFX "found pcm3052\n"); |
1067 | addr = of_get_property(dev, "reg", NULL); | 1067 | addr = of_get_property(dev, "reg", NULL); |
@@ -1074,7 +1074,7 @@ static int onyx_i2c_attach(struct i2c_adapter *adapter) | |||
1074 | /* if that didn't work, try desperate mode for older | 1074 | /* if that didn't work, try desperate mode for older |
1075 | * machines that have stuff missing from the device tree */ | 1075 | * machines that have stuff missing from the device tree */ |
1076 | 1076 | ||
1077 | if (!device_is_compatible(busnode, "k2-i2c")) | 1077 | if (!of_device_is_compatible(busnode, "k2-i2c")) |
1078 | return -ENODEV; | 1078 | return -ENODEV; |
1079 | 1079 | ||
1080 | printk(KERN_DEBUG PFX "found k2-i2c, checking if onyx chip is on it\n"); | 1080 | printk(KERN_DEBUG PFX "found k2-i2c, checking if onyx chip is on it\n"); |
diff --git a/sound/aoa/codecs/snd-aoa-codec-tas.c b/sound/aoa/codecs/snd-aoa-codec-tas.c index ceca38486eae..041fe52cbf29 100644 --- a/sound/aoa/codecs/snd-aoa-codec-tas.c +++ b/sound/aoa/codecs/snd-aoa-codec-tas.c | |||
@@ -938,7 +938,7 @@ static int tas_i2c_attach(struct i2c_adapter *adapter) | |||
938 | busnode = pmac_i2c_get_bus_node(bus); | 938 | busnode = pmac_i2c_get_bus_node(bus); |
939 | 939 | ||
940 | while ((dev = of_get_next_child(busnode, dev)) != NULL) { | 940 | while ((dev = of_get_next_child(busnode, dev)) != NULL) { |
941 | if (device_is_compatible(dev, "tas3004")) { | 941 | if (of_device_is_compatible(dev, "tas3004")) { |
942 | const u32 *addr; | 942 | const u32 *addr; |
943 | printk(KERN_DEBUG PFX "found tas3004\n"); | 943 | printk(KERN_DEBUG PFX "found tas3004\n"); |
944 | addr = of_get_property(dev, "reg", NULL); | 944 | addr = of_get_property(dev, "reg", NULL); |
diff --git a/sound/aoa/soundbus/i2sbus/i2sbus-core.c b/sound/aoa/soundbus/i2sbus/i2sbus-core.c index 79fc4bc09e5e..0fccdbf51663 100644 --- a/sound/aoa/soundbus/i2sbus/i2sbus-core.c +++ b/sound/aoa/soundbus/i2sbus/i2sbus-core.c | |||
@@ -336,8 +336,8 @@ static int i2sbus_probe(struct macio_dev* dev, const struct of_device_id *match) | |||
336 | } | 336 | } |
337 | 337 | ||
338 | while ((np = of_get_next_child(dev->ofdev.node, np))) { | 338 | while ((np = of_get_next_child(dev->ofdev.node, np))) { |
339 | if (device_is_compatible(np, "i2sbus") || | 339 | if (of_device_is_compatible(np, "i2sbus") || |
340 | device_is_compatible(np, "i2s-modem")) { | 340 | of_device_is_compatible(np, "i2s-modem")) { |
341 | got += i2sbus_add_dev(dev, control, np); | 341 | got += i2sbus_add_dev(dev, control, np); |
342 | } | 342 | } |
343 | } | 343 | } |