mmc: atmel-mci: Switch to using managed resource in probe
authorPramod Gurav <pramod.gurav@smartplayin.com>
Tue, 23 Sep 2014 12:51:48 +0000 (18:21 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 24 Sep 2014 08:37:40 +0000 (10:37 +0200)
commit7bca646e0fc34b19cd84e14ed474d1c95830cc80
treeca1afd5719e1ca2d730c6aa0cfb556d5e4b51b93
parentdfa5d19658a308b373ce0cb9f6be9338c16ce14f
mmc: atmel-mci: Switch to using managed resource in probe

This change uses managed resource APIs to allocate resources such as,
clk, gpio, io in order to simplify the driver unload or failure cases.
Hence does away with release statements of the same resources in error
labels and 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