diff options
Diffstat (limited to 'arch/powerpc/platforms/44x/virtex.c')
-rw-r--r-- | arch/powerpc/platforms/44x/virtex.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/44x/virtex.c b/arch/powerpc/platforms/44x/virtex.c index ad272c17c640..a7e08026097a 100644 --- a/arch/powerpc/platforms/44x/virtex.c +++ b/arch/powerpc/platforms/44x/virtex.c | |||
@@ -43,9 +43,7 @@ machine_device_initcall(virtex, virtex_device_probe); | |||
43 | 43 | ||
44 | static int __init virtex_probe(void) | 44 | static int __init virtex_probe(void) |
45 | { | 45 | { |
46 | unsigned long root = of_get_flat_dt_root(); | 46 | if (!of_machine_is_compatible("xlnx,virtex440")) |
47 | |||
48 | if (!of_flat_dt_is_compatible(root, "xlnx,virtex440")) | ||
49 | return 0; | 47 | return 0; |
50 | 48 | ||
51 | return 1; | 49 | return 1; |