]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf9e315b8264ad6aaa0b0833e1a4e94a1e3cf2bd3
treeca1afd5719e1ca2d730c6aa0cfb556d5e4b51b93
parentd542e5015140c5ce7c7245ddaf3aba858da311b2
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