diff options
-rw-r--r-- | drivers/of/fdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index d429826b61a5..17be90f5445f 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c | |||
@@ -748,7 +748,7 @@ int __init early_init_dt_scan_memory(unsigned long node, const char *uname, | |||
748 | * The longtrail doesn't have a device_type on the | 748 | * The longtrail doesn't have a device_type on the |
749 | * /memory node, so look for the node called /memory@0. | 749 | * /memory node, so look for the node called /memory@0. |
750 | */ | 750 | */ |
751 | if (depth != 1 || strcmp(uname, "memory@0") != 0) | 751 | if (!IS_ENABLED(CONFIG_PPC32) || depth != 1 || strcmp(uname, "memory@0") != 0) |
752 | return 0; | 752 | return 0; |
753 | } else if (strcmp(type, "memory") != 0) | 753 | } else if (strcmp(type, "memory") != 0) |
754 | return 0; | 754 | return 0; |