diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-04-23 23:53:04 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-24 08:09:02 -0400 |
commit | 30686ba6d56858657829d3eb524ed73e5dc98d2b (patch) | |
tree | 42bf3cea4dc7028fec30377560b367cd8274825e /drivers/serial | |
parent | 1658ab66781d918f604c6069c5cf9a94b6f52f84 (diff) |
[POWERPC] Remove old interface find_devices
Replace uses with of_find_node_by_name and for_each_node_by_name.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/pmac_zilog.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/serial/pmac_zilog.c b/drivers/serial/pmac_zilog.c index 2b163c532e0d..cd92a3966b0c 100644 --- a/drivers/serial/pmac_zilog.c +++ b/drivers/serial/pmac_zilog.c | |||
@@ -1467,7 +1467,8 @@ no_dma: | |||
1467 | if (ZS_IS_IRDA(uap)) | 1467 | if (ZS_IS_IRDA(uap)) |
1468 | uap->port_type = PMAC_SCC_IRDA; | 1468 | uap->port_type = PMAC_SCC_IRDA; |
1469 | if (ZS_IS_INTMODEM(uap)) { | 1469 | if (ZS_IS_INTMODEM(uap)) { |
1470 | struct device_node* i2c_modem = find_devices("i2c-modem"); | 1470 | struct device_node* i2c_modem = |
1471 | of_find_node_by_name(NULL, "i2c-modem"); | ||
1471 | if (i2c_modem) { | 1472 | if (i2c_modem) { |
1472 | const char* mid = | 1473 | const char* mid = |
1473 | of_get_property(i2c_modem, "modem-id", NULL); | 1474 | of_get_property(i2c_modem, "modem-id", NULL); |
@@ -1482,6 +1483,7 @@ no_dma: | |||
1482 | } | 1483 | } |
1483 | printk(KERN_INFO "pmac_zilog: i2c-modem detected, id: %d\n", | 1484 | printk(KERN_INFO "pmac_zilog: i2c-modem detected, id: %d\n", |
1484 | mid ? (*mid) : 0); | 1485 | mid ? (*mid) : 0); |
1486 | of_node_put(i2c_modem); | ||
1485 | } else { | 1487 | } else { |
1486 | printk(KERN_INFO "pmac_zilog: serial modem detected\n"); | 1488 | printk(KERN_INFO "pmac_zilog: serial modem detected\n"); |
1487 | } | 1489 | } |