mmc: core: fix error path in mmc_host_alloc
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 28 Jan 2017 08:32:50 +0000 (09:32 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:20:48 +0000 (13:20 +0100)
commit1ed2171944888cf6787990a0f6387b717ba72e24
tree3f6eca73872a2f02945a493385d4f05266ef8240
parent7413d1f509eb0ee605973c1a6da9911700c80012
mmc: core: fix error path in mmc_host_alloc

Properly reverse everything if mmc_gpio_alloc(host) fails.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/host.c