diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-04-26 23:41:15 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-27 01:51:56 -0400 |
commit | 01b2726dd11ef198ac6cf8f88974b4427d40ffdb (patch) | |
tree | 55d37172978ce18678e381b0388e51c93e911565 /drivers/macintosh/via-pmu.c | |
parent | a48141db68e4b9143759435badcc1a49d9022db4 (diff) |
[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) | |||
289 | if (vias == NULL) | 289 | if (vias == NULL) |
290 | return 0; | 290 | return 0; |
291 | 291 | ||
292 | reg = get_property(vias, "reg", NULL); | 292 | reg = of_get_property(vias, "reg", NULL); |
293 | if (reg == NULL) { | 293 | if (reg == NULL) { |
294 | printk(KERN_ERR "via-pmu: No \"reg\" property !\n"); | 294 | printk(KERN_ERR "via-pmu: No \"reg\" property !\n"); |
295 | goto fail; | 295 | goto fail; |
@@ -334,7 +334,7 @@ int __init find_via_pmu(void) | |||
334 | 334 | ||
335 | gpiop = of_find_node_by_name(NULL, "gpio"); | 335 | gpiop = of_find_node_by_name(NULL, "gpio"); |
336 | if (gpiop) { | 336 | if (gpiop) { |
337 | reg = get_property(gpiop, "reg", NULL); | 337 | reg = of_get_property(gpiop, "reg", NULL); |
338 | if (reg) | 338 | if (reg) |
339 | gaddr = of_translate_address(gpiop, reg); | 339 | gaddr = of_translate_address(gpiop, reg); |
340 | if (gaddr != OF_BAD_ADDR) | 340 | if (gaddr != OF_BAD_ADDR) |
@@ -491,7 +491,7 @@ static int __init via_pmu_dev_init(void) | |||
491 | of_find_node_by_name(NULL, "power-mgt"); | 491 | of_find_node_by_name(NULL, "power-mgt"); |
492 | const u32 *prim_info = NULL; | 492 | const u32 *prim_info = NULL; |
493 | if (prim) | 493 | if (prim) |
494 | prim_info = get_property(prim, "prim-info", NULL); | 494 | prim_info = of_get_property(prim, "prim-info", NULL); |
495 | if (prim_info) { | 495 | if (prim_info) { |
496 | /* Other stuffs here yet unknown */ | 496 | /* Other stuffs here yet unknown */ |
497 | pmu_battery_count = (prim_info[6] >> 16) & 0xff; | 497 | pmu_battery_count = (prim_info[6] >> 16) & 0xff; |