]> 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)
commite9163f71b459ca676430e9ce02e9f4d7b0fe77ea
treeca1afd5719e1ca2d730c6aa0cfb556d5e4b51b93
parent3c01193cc088088081fc688e76a620fed4589c99
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