]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mmci: fix error return code in mmci_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 23 Jan 2018 02:09:13 +0000 (02:09 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 24 Jan 2018 12:51:07 +0000 (13:51 +0100)
commit91cf557d2046a923477e84540bdae8e7e374ca56
tree982abfab0d18ad09ae641965ad601efeb412b336
parente4231876222876e348a52c4dfaebeb64ca64bb9e
mmc: mmci: fix error return code in mmci_probe()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 3e3e00e44007 ("mmc: mmci: Add support for setting pad type via pinctrl")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmci.c