]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mmc: usdhi6rol0: fix error return code in usdhi6_probe()
authorZhen Lei <thunder.leizhen@huawei.com>
Sat, 8 May 2021 02:03:21 +0000 (10:03 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 May 2021 13:12:30 +0000 (15:12 +0200)
commitac5eb12c4dec5d8f648812386dcbd6d84ced5341
tree8fe2f5e7bfda3915d3a2b0d34dbd47ce259b58ad
parent3902f4e38d8e584e86be1c7c61d9dc90d988814b
mmc: usdhi6rol0: fix error return code in usdhi6_probe()

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

Fixes: 75fa9ea6e3c0 ("mmc: add a driver for the Renesas usdhi6rol0 SD/SDIO host controller")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210508020321.1677-1-thunder.leizhen@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/usdhi6rol0.c