Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9c43856 authored by Pantelis Antoniou's avatar Pantelis Antoniou Committed by Rob Herring
Browse files

of: dynamic: changeset prop-update revert fix



When reverting an update property changeset entry that created a
property the reverse operation is a remove property and not an update.

Signed-off-by: default avatarPantelis Antoniou <pantelis.antoniou@konsulko.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent bb91f923
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -498,6 +498,11 @@ static void __of_changeset_entry_invert(struct of_changeset_entry *ce,
	case OF_RECONFIG_UPDATE_PROPERTY:
		rce->old_prop = ce->prop;
		rce->prop = ce->old_prop;
		/* update was used but original property did not exist */
		if (!rce->prop) {
			rce->action = OF_RECONFIG_REMOVE_PROPERTY;
			rce->prop = ce->prop;
		}
		break;
	}
}