Name

of_changeset_revert — Revert an applied changeset

Synopsis

int of_changeset_revert (struct of_changeset * ocs);
 

Arguments

ocs

Pointer to changeset

Description

Revert a changeset, returning the state of the live tree to what it was before the application of the changeset.

Any side-effects like creation/destruction of devices and removal of sysfs properties and directories are applied.

Return

0 on success, -EINVAL for an invalid changeset action, -ENODEV for an attempt to remove non-existent property, and -EEXIST for an attempt to add a property that already exists.