mmc: sdhci-bcm-kona: fix error return code in sdhci_bcm_kona_probe()
authorWei Yongjun <weiyj.lk@gmail.com>
Thu, 28 Jul 2016 16:17:44 +0000 (16:17 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Sep 2016 19:31:08 +0000 (21:31 +0200)
commit66fe6ac5d5e120b85c2ed310eb25b15a77c110c0
tree1f49228f085de57c4268f0eff3cbe1df552a63bb
parent41f469cac2663a41a7b0c84cb94e8f7024385ae4
mmc: sdhci-bcm-kona: fix error return code in sdhci_bcm_kona_probe()

In clk_set_rate() or clk_prepare_enable() error handling case, the
error return code ret is not set, so sdhci_bcm_kona_probe() return
0 in those error cases.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Acked-by: Ray Jui <ray.jui@broadcom.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-bcm-kona.c