summaryrefslogtreecommitdiff
path: root/drivers/mmc/card/block.c
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2016-02-08 15:17:57 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2016-02-08 15:25:43 +0100
commit07e7716c746dd4e43211903eac954a18192d3d14 (patch)
tree9374660ccd72587a71252f3434d4c57f59626a5a /drivers/mmc/card/block.c
parentb00663124c76f69e71d118d778842471e85c6f11 (diff)
downloadlinux-next-07e7716c746dd4e43211903eac954a18192d3d14.tar.gz
mmc: pxamci: fix the device-tree probe deferral path
When the gpio driver is probed after the mmc one, the read/write gpio and card detection one return -EPROBE_DEFER. Unfortunately, the memory region remains requested, and upon the next probe, the probe will fail anyway with -EBUSY. Fix this by releasing the memory resource upon probe failure. More broadly, this patch uses devm_*() primitives whenever possible in the probe function. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/card/block.c')
0 files changed, 0 insertions, 0 deletions