mmc: mvsdio: use devm_ API to simplify/correct error paths.
authorAndrew Lunn <andrew@lunn.ch>
Wed, 16 Jan 2013 13:13:56 +0000 (14:13 +0100)
committerJason Cooper <jason@lakedaemon.net>
Wed, 23 Jan 2013 01:08:01 +0000 (01:08 +0000)
commitf42abc72da2e77efefd547562a92ddd18926b48b
tree6051f78be5db68b749bccd7fbb09ce2604e0f712
parentd6f620a457aa4c5c2e8d1a079a1236216c445aba
mmc: mvsdio: use devm_ API to simplify/correct error paths.

There are a number of bugs in the error paths of this driver.  Make
use of devm_ functions to simplify the cleanup on error.

Based on a patch by Russell King.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/mmc/host/mvsdio.c