|
@@ -748,7 +748,7 @@ int __init early_init_dt_scan_memory(unsigned long node, const char *uname,
|
|
|
* The longtrail doesn't have a device_type on the
|
|
|
* /memory node, so look for the node called /memory@0.
|
|
|
*/
|
|
|
- if (depth != 1 || strcmp(uname, "memory@0") != 0)
|
|
|
+ if (!IS_ENABLED(CONFIG_PPC32) || depth != 1 || strcmp(uname, "memory@0") != 0)
|
|
|
return 0;
|
|
|
} else if (strcmp(type, "memory") != 0)
|
|
|
return 0;
|