aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/52xx/efika.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/52xx/efika.c')
-rw-r--r--arch/powerpc/platforms/52xx/efika.c15
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)
159static void efika_show_cpuinfo(struct seq_file *m) 159static 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);