mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 12:10:38 -04:00
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: Pantelis Antoniou <pantelis.antoniou@konsulko.com> Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
committed by
Rob Herring
parent
bb91f923d1
commit
b9c43856f2
@@ -498,6 +498,11 @@ static void __of_changeset_entry_invert(struct of_changeset_entry *ce,
|
|||||||
case OF_RECONFIG_UPDATE_PROPERTY:
|
case OF_RECONFIG_UPDATE_PROPERTY:
|
||||||
rce->old_prop = ce->prop;
|
rce->old_prop = ce->prop;
|
||||||
rce->prop = ce->old_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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user