mmc: sdhci: Fix error paths in sdhci_add_host()
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 12 Apr 2016 11:25:08 +0000 (14:25 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 2 May 2016 08:33:29 +0000 (10:33 +0200)
commiteb5c20de351867120c8dfb6d523d5795a3125b02
tree154104ac4d4d79835ab8b7006c84bc861e9dddae
parentd310ae4936ccf1186851692c511483c794dd7701
mmc: sdhci: Fix error paths in sdhci_add_host()

Some error paths in sdhci_add_host() simply returned without
cleaning up.  Also the return value from mmc_add_host()
was not being checked.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c