diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-04-03 08:26:41 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-12 13:55:19 -0400 |
commit | e2eb63927bfcb54232163bfec32440246fd44457 (patch) | |
tree | 596656edeb2332b5134d8236fa50b87f2c0ece29 /arch/powerpc/platforms/52xx/efika.c | |
parent | ceef87782a9452eeeca774e65d7f4e06455780a3 (diff) |
[POWERPC] Rename get_property to of_get_property: arch/powerpc
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/52xx/efika.c')
-rw-r--r-- | arch/powerpc/platforms/52xx/efika.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/powerpc/platforms/52xx/efika.c b/arch/powerpc/platforms/52xx/efika.c index 31a2a8ca1de7..042008486969 100644 --- a/arch/powerpc/platforms/52xx/efika.c +++ b/arch/powerpc/platforms/52xx/efika.c | |||
@@ -113,7 +113,7 @@ void __init efika_pcisetup(void) | |||
113 | return; | 113 | return; |
114 | } | 114 | } |
115 | 115 | ||
116 | bus_range = get_property(pcictrl, "bus-range", &len); | 116 | bus_range = of_get_property(pcictrl, "bus-range", &len); |
117 | if (bus_range == NULL || len < 2 * sizeof(int)) { | 117 | if (bus_range == NULL || len < 2 * sizeof(int)) { |
118 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | 118 | printk(KERN_WARNING EFIKA_PLATFORM_NAME |
119 | ": Can't get bus-range for %s\n", pcictrl->full_name); | 119 | ": Can't get bus-range for %s\n", pcictrl->full_name); |
@@ -159,18 +159,17 @@ void __init efika_pcisetup(void) | |||
159 | static void efika_show_cpuinfo(struct seq_file *m) | 159 | static void efika_show_cpuinfo(struct seq_file *m) |
160 | { | 160 | { |
161 | struct device_node *root; | 161 | struct device_node *root; |
162 | const char *revision = NULL; | 162 | const char *revision; |
163 | const char *codegendescription = NULL; | 163 | const char *codegendescription; |
164 | const char *codegenvendor = NULL; | 164 | const char *codegenvendor; |
165 | 165 | ||
166 | root = of_find_node_by_path("/"); | 166 | root = of_find_node_by_path("/"); |
167 | if (!root) | 167 | if (!root) |
168 | return; | 168 | return; |
169 | 169 | ||
170 | revision = get_property(root, "revision", NULL); | 170 | revision = of_get_property(root, "revision", NULL); |
171 | codegendescription = | 171 | codegendescription = of_get_property(root, "CODEGEN,description", NULL); |
172 | get_property(root, "CODEGEN,description", NULL); | 172 | codegenvendor = of_get_property(root, "CODEGEN,vendor", NULL); |
173 | codegenvendor = get_property(root, "CODEGEN,vendor", NULL); | ||
174 | 173 | ||
175 | if (codegendescription) | 174 | if (codegendescription) |
176 | seq_printf(m, "machine\t\t: %s\n", codegendescription); | 175 | seq_printf(m, "machine\t\t: %s\n", codegendescription); |