diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-04-27 13:41:15 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-27 15:51:56 +1000 |
commit | 01b2726dd11ef198ac6cf8f88974b4427d40ffdb (patch) | |
tree | 55d37172978ce18678e381b0388e51c93e911565 /drivers/macintosh/via-pmu.c | |
parent | a48141db68e4b9143759435badcc1a49d9022db4 (diff) | |
download | linux-01b2726dd11ef198ac6cf8f88974b4427d40ffdb.tar.gz linux-01b2726dd11ef198ac6cf8f88974b4427d40ffdb.tar.bz2 linux-01b2726dd11ef198ac6cf8f88974b4427d40ffdb.zip |
[POWERPC] Rename get_property to of_get_property: partial drivers
This does drivers/machintosh and the hvc code.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/macintosh/via-pmu.c')
-rw-r--r-- | drivers/macintosh/via-pmu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 8470210db7f6..1729d3fd7a11 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c @@ -289,7 +289,7 @@ int __init find_via_pmu(void) if (vias == NULL) return 0; - reg = get_property(vias, "reg", NULL); + reg = of_get_property(vias, "reg", NULL); if (reg == NULL) { printk(KERN_ERR "via-pmu: No \"reg\" property !\n"); goto fail; @@ -334,7 +334,7 @@ int __init find_via_pmu(void) gpiop = of_find_node_by_name(NULL, "gpio"); if (gpiop) { - reg = get_property(gpiop, "reg", NULL); + reg = of_get_property(gpiop, "reg", NULL); if (reg) gaddr = of_translate_address(gpiop, reg); if (gaddr != OF_BAD_ADDR) @@ -491,7 +491,7 @@ static int __init via_pmu_dev_init(void) of_find_node_by_name(NULL, "power-mgt"); const u32 *prim_info = NULL; if (prim) - prim_info = get_property(prim, "prim-info", NULL); + prim_info = of_get_property(prim, "prim-info", NULL); if (prim_info) { /* Other stuffs here yet unknown */ pmu_battery_count = (prim_info[6] >> 16) & 0xff; |