summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/40x/virtex.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/40x/virtex.c')
-rw-r--r--arch/powerpc/platforms/40x/virtex.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/40x/virtex.c b/arch/powerpc/platforms/40x/virtex.c
index 9aa7ae2f4164..91a08ea758a8 100644
--- a/arch/powerpc/platforms/40x/virtex.c
+++ b/arch/powerpc/platforms/40x/virtex.c
@@ -37,9 +37,7 @@ machine_device_initcall(virtex, virtex_device_probe);
static int __init virtex_probe(void)
{
- unsigned long root = of_get_flat_dt_root();
-
- if (!of_flat_dt_is_compatible(root, "xlnx,virtex"))
+ if (!of_machine_is_compatible("xlnx,virtex"))
return 0;
return 1;
OpenPOWER on IntegriCloud