diff options
Diffstat (limited to 'arch/powerpc/platforms/embedded6xx/mvme5100.c')
-rw-r--r-- | arch/powerpc/platforms/embedded6xx/mvme5100.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/embedded6xx/mvme5100.c b/arch/powerpc/platforms/embedded6xx/mvme5100.c index 8f65aa3747f5..ed7321d6772e 100644 --- a/arch/powerpc/platforms/embedded6xx/mvme5100.c +++ b/arch/powerpc/platforms/embedded6xx/mvme5100.c | |||
@@ -177,7 +177,7 @@ static void mvme5100_show_cpuinfo(struct seq_file *m) | |||
177 | seq_puts(m, "Machine\t\t: MVME5100\n"); | 177 | seq_puts(m, "Machine\t\t: MVME5100\n"); |
178 | } | 178 | } |
179 | 179 | ||
180 | static void mvme5100_restart(char *cmd) | 180 | static void __noreturn mvme5100_restart(char *cmd) |
181 | { | 181 | { |
182 | 182 | ||
183 | local_irq_disable(); | 183 | local_irq_disable(); |
@@ -194,9 +194,7 @@ static void mvme5100_restart(char *cmd) | |||
194 | */ | 194 | */ |
195 | static int __init mvme5100_probe(void) | 195 | static int __init mvme5100_probe(void) |
196 | { | 196 | { |
197 | unsigned long root = of_get_flat_dt_root(); | 197 | return of_machine_is_compatible("MVME5100"); |
198 | |||
199 | return of_flat_dt_is_compatible(root, "MVME5100"); | ||
200 | } | 198 | } |
201 | 199 | ||
202 | static int __init probe_of_platform_devices(void) | 200 | static int __init probe_of_platform_devices(void) |