summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/40x/ep405.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/40x/ep405.c')
-rw-r--r--arch/powerpc/platforms/40x/ep405.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/40x/ep405.c b/arch/powerpc/platforms/40x/ep405.c
index ddc12a1926ef..1c8aec6e9bb7 100644
--- a/arch/powerpc/platforms/40x/ep405.c
+++ b/arch/powerpc/platforms/40x/ep405.c
@@ -105,9 +105,7 @@ static void __init ep405_setup_arch(void)
static int __init ep405_probe(void)
{
- unsigned long root = of_get_flat_dt_root();
-
- if (!of_flat_dt_is_compatible(root, "ep405"))
+ if (!of_machine_is_compatible("ep405"))
return 0;
return 1;