diff options
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 8de034116681..a6bba97314eb 100644 --- a/arch/powerpc/platforms/52xx/efika.c +++ b/arch/powerpc/platforms/52xx/efika.c | |||
@@ -112,7 +112,7 @@ void __init efika_pcisetup(void) | |||
112 | return; | 112 | return; |
113 | } | 113 | } |
114 | 114 | ||
115 | bus_range = get_property(pcictrl, "bus-range", &len); | 115 | bus_range = of_get_property(pcictrl, "bus-range", &len); |
116 | if (bus_range == NULL || len < 2 * sizeof(int)) { | 116 | if (bus_range == NULL || len < 2 * sizeof(int)) { |
117 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | 117 | printk(KERN_WARNING EFIKA_PLATFORM_NAME |
118 | ": Can't get bus-range for %s\n", pcictrl->full_name); | 118 | ": Can't get bus-range for %s\n", pcictrl->full_name); |
@@ -158,18 +158,17 @@ void __init efika_pcisetup(void) | |||
158 | static void efika_show_cpuinfo(struct seq_file *m) | 158 | static void efika_show_cpuinfo(struct seq_file *m) |
159 | { | 159 | { |
160 | struct device_node *root; | 160 | struct device_node *root; |
161 | const char *revision = NULL; | 161 | const char *revision; |
162 | const char *codegendescription = NULL; | 162 | const char *codegendescription; |
163 | const char *codegenvendor = NULL; | 163 | const char *codegenvendor; |
164 | 164 | ||
165 | root = of_find_node_by_path("/"); | 165 | root = of_find_node_by_path("/"); |
166 | if (!root) | 166 | if (!root) |
167 | return; | 167 | return; |
168 | 168 | ||
169 | revision = get_property(root, "revision", NULL); | 169 | revision = of_get_property(root, "revision", NULL); |
170 | codegendescription = | 170 | codegendescription = of_get_property(root, "CODEGEN,description", NULL); |
171 | get_property(root, "CODEGEN,description", NULL); | 171 | codegenvendor = of_get_property(root, "CODEGEN,vendor", NULL); |
172 | codegenvendor = get_property(root, "CODEGEN,vendor", NULL); | ||
173 | 172 | ||
174 | if (codegendescription) | 173 | if (codegendescription) |
175 | seq_printf(m, "machine\t\t: %s\n", codegendescription); | 174 | seq_printf(m, "machine\t\t: %s\n", codegendescription); |