mmc: sdhci-st: Do cleanup while mmc_of_parse() return an error
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 18 Dec 2014 09:41:43 +0000 (10:41 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 19 Jan 2015 08:56:14 +0000 (09:56 +0100)
commitfc702cb35dcb660eefb27e9dc1fe93aed9f39f64
treeaa05bbce61186c9f5a171711b7613761633b9b3b
parentf8e3260c136b5d092ba86a78277b9a4579d8480a
mmc: sdhci-st: Do cleanup while mmc_of_parse() return an error

At errors, balance sdhci_pltfm_init() with sdhci_pltfm_free(), to make
sure all data is freed properly.

Cc: Srinivas Kandagatla <srinivas.kandagatla@gmail.com>
Cc: Maxime Coquelin <maxime.coquelin@st.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
drivers/mmc/host/sdhci-st.c