Skip to content
Commit 6ac95d82 authored by Russell King's avatar Russell King
Browse files

pcmcia: soc_common: restore previous socket state on error



If an attempt to set a socket state returns an error, restore the
previous socket state.  If restoring the previous socket state
fails, warn about this.

This allows us to have simple error handling in the socket state
configuration handlers - there is no need for every handler
implementation to manually undo the updates, which can be complex
when regulators are involved.

Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent 535e0abc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment