diff options
Diffstat (limited to 'arch/powerpc/platforms/52xx/lite5200.c')
-rw-r--r-- | arch/powerpc/platforms/52xx/lite5200.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/52xx/lite5200.c b/arch/powerpc/platforms/52xx/lite5200.c index cc3b40de21dd..8e2646ac417b 100644 --- a/arch/powerpc/platforms/52xx/lite5200.c +++ b/arch/powerpc/platforms/52xx/lite5200.c | |||
@@ -94,8 +94,8 @@ static void __init lite5200_setup_arch(void) | |||
94 | 94 | ||
95 | np = of_find_node_by_type(NULL, "cpu"); | 95 | np = of_find_node_by_type(NULL, "cpu"); |
96 | if (np) { | 96 | if (np) { |
97 | unsigned int *fp = | 97 | const unsigned int *fp = |
98 | (int *)get_property(np, "clock-frequency", NULL); | 98 | of_get_property(np, "clock-frequency", NULL); |
99 | if (fp != 0) | 99 | if (fp != 0) |
100 | loops_per_jiffy = *fp / HZ; | 100 | loops_per_jiffy = *fp / HZ; |
101 | else | 101 | else |
@@ -108,9 +108,11 @@ static void __init lite5200_setup_arch(void) | |||
108 | lite5200_setup_cpu(); /* Platorm specific */ | 108 | lite5200_setup_cpu(); /* Platorm specific */ |
109 | 109 | ||
110 | #ifdef CONFIG_PCI | 110 | #ifdef CONFIG_PCI |
111 | np = of_find_node_by_type(np, "pci"); | 111 | np = of_find_node_by_type(NULL, "pci"); |
112 | if (np) | 112 | if (np) { |
113 | mpc52xx_add_bridge(np); | 113 | mpc52xx_add_bridge(np); |
114 | of_node_put(np); | ||
115 | } | ||
114 | #endif | 116 | #endif |
115 | 117 | ||
116 | #ifdef CONFIG_BLK_DEV_INITRD | 118 | #ifdef CONFIG_BLK_DEV_INITRD |
@@ -132,7 +134,7 @@ void lite5200_show_cpuinfo(struct seq_file *m) | |||
132 | const char *model = NULL; | 134 | const char *model = NULL; |
133 | 135 | ||
134 | if (np) | 136 | if (np) |
135 | model = get_property(np, "model", NULL); | 137 | model = of_get_property(np, "model", NULL); |
136 | 138 | ||
137 | seq_printf(m, "vendor\t\t: Freescale Semiconductor\n"); | 139 | seq_printf(m, "vendor\t\t: Freescale Semiconductor\n"); |
138 | seq_printf(m, "machine\t\t: %s\n", model ? model : "unknown"); | 140 | seq_printf(m, "machine\t\t: %s\n", model ? model : "unknown"); |