summaryrefslogtreecommitdiff
path: root/drivers/pcmcia/soc_common.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2016-08-31 08:49:46 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2016-09-22 09:39:00 +0100
commit6ac95d821216f3baab16821a893d52ab385824be (patch)
tree8183c33b98ba4f77168b1f6e9d26cab1998fe0a5 /drivers/pcmcia/soc_common.h
parent535e0abc0534b139b067d496bb93663acffb72ce (diff)
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: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/pcmcia/soc_common.h')
0 files changed, 0 insertions, 0 deletions