mmc: atmel-mci: Release mmc resources on failure in probe
authorPramod Gurav <pramod.gurav@smartplayin.com>
Tue, 23 Sep 2014 10:20:06 +0000 (15:50 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 24 Sep 2014 08:39:35 +0000 (10:39 +0200)
commit528bc7808f4e36a330ec17ef22803f1345091494
tree884e9e93908ab2daf7c46cb1c2f5bff09257bede
parent7bca646e0fc34b19cd84e14ed474d1c95830cc80
mmc: atmel-mci: Release mmc resources on failure in probe

This change takes care of releasing mmc resources on error cases in
probe function which was missing. Also release timer in remove function.

Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/atmel-mci.c