]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: jz4740: Fix error exit path in driver's probe
authorPaul Cercueil <paul@crapouillou.net>
Wed, 28 Mar 2018 21:00:44 +0000 (18:00 -0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 May 2018 13:08:30 +0000 (15:08 +0200)
commit7e8466e222798f309472d1a4b71943b2941ba961
tree0f3c9838b5fd8161d0fd76aa9e9b7a5be92c0d40
parentff178981bd5fd1667f373098740cb1c6d6efa1ba
mmc: jz4740: Fix error exit path in driver's probe

Currently, if jz4740_mmc_request_gpios() fails, the driver
tries to release DMA resources. This is wrong because DMA
is requested at a later stage.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
[Ezequiel: cleanup commit message]
Tested-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.co.uk>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/jz4740_mmc.c