Commit 6fc5d63c authored by Rob Herring (Arm)'s avatar Rob Herring (Arm) Committed by Madhavan Srinivasan
Browse files

powerpc/prom_init: Fixup missing #size-cells on PowerMac media-bay nodes



Similar to other PowerMac mac-io devices, the media-bay node is missing the
"#size-cells" property.

Depends-on: commit 045b14ca ("of: WARN on deprecated #address-cells/#size-cells handling")
Reported-by: default avatarStan Johnson <userm57@yahoo.com>
Signed-off-by: default avatarRob Herring (Arm) <robh@kernel.org>
Signed-off-by: default avatarMadhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20251029174047.1620073-1-robh@kernel.org
parent 07061783
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2893,7 +2893,8 @@ static void __init fixup_device_tree_pmac(void)
	for (node = 0; prom_next_node(&node); ) {
		type[0] = '\0';
		prom_getprop(node, "device_type", type, sizeof(type));
		if (prom_strcmp(type, "escc") && prom_strcmp(type, "i2s"))
		if (prom_strcmp(type, "escc") && prom_strcmp(type, "i2s") &&
		    prom_strcmp(type, "media-bay"))
			continue;

		if (prom_getproplen(node, "#size-cells") != PROM_ERROR)