diff options
Diffstat (limited to 'arch/powerpc/platforms/52xx/media5200.c')
-rw-r--r-- | arch/powerpc/platforms/52xx/media5200.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/arch/powerpc/platforms/52xx/media5200.c b/arch/powerpc/platforms/52xx/media5200.c index 0bac3a3dbecf..2c7780cb68e5 100644 --- a/arch/powerpc/platforms/52xx/media5200.c +++ b/arch/powerpc/platforms/52xx/media5200.c | |||
@@ -239,7 +239,7 @@ static void __init media5200_setup_arch(void) | |||
239 | } | 239 | } |
240 | 240 | ||
241 | /* list of the supported boards */ | 241 | /* list of the supported boards */ |
242 | static char *board[] __initdata = { | 242 | static const char *board[] __initdata = { |
243 | "fsl,media5200", | 243 | "fsl,media5200", |
244 | NULL | 244 | NULL |
245 | }; | 245 | }; |
@@ -249,16 +249,7 @@ static char *board[] __initdata = { | |||
249 | */ | 249 | */ |
250 | static int __init media5200_probe(void) | 250 | static int __init media5200_probe(void) |
251 | { | 251 | { |
252 | unsigned long node = of_get_flat_dt_root(); | 252 | return of_flat_dt_match(of_get_flat_dt_root(), board); |
253 | int i = 0; | ||
254 | |||
255 | while (board[i]) { | ||
256 | if (of_flat_dt_is_compatible(node, board[i])) | ||
257 | break; | ||
258 | i++; | ||
259 | } | ||
260 | |||
261 | return (board[i] != NULL); | ||
262 | } | 253 | } |
263 | 254 | ||
264 | define_machine(media5200_platform) { | 255 | define_machine(media5200_platform) { |