mmc: sdhci-of-dwcmshc: fix error return code in dwcmshc_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 23 Mar 2021 11:29:56 +0000 (11:29 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 30 Mar 2021 09:42:07 +0000 (11:42 +0200)
commit34884c4f6483b9d9f14973cd0c9c06404fe6e13d
treec8355a0c0b9af1bb0afb39c707b1a827449d31b4
parenteb81ed518079eaf8aca1053ffba54c56271b9f35
mmc: sdhci-of-dwcmshc: fix error return code in dwcmshc_probe()

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

Fixes: c2c4da37837e ("mmc: sdhci-of-dwcmshc: add rockchip platform support")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20210323112956.1016884-1-weiyongjun1@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-dwcmshc.c