[PATCH v3 3/5] mmc: davinci: fix unwinding in probe

2016-03-19 Thread David Lechner
Unwiding from an error in davinci_mmcsd_probe was a mess. Some errors were not handled and not all paths unwound correctly. Also using devm_ where possible to simplify things. Signed-off-by: David Lechner --- v3 changes: fixed ret = -ENODEV mistake. Updated to apply on top

[PATCH v3 3/5] mmc: davinci: fix unwinding in probe

2016-03-19 Thread David Lechner
Unwiding from an error in davinci_mmcsd_probe was a mess. Some errors were not handled and not all paths unwound correctly. Also using devm_ where possible to simplify things. Signed-off-by: David Lechner --- v3 changes: fixed ret = -ENODEV mistake. Updated to apply on top of patch from Peter