mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
mmc: sdhci-of-k1: Fix error code in probe()
If spacemit_sdhci_get_clocks() fails, then propagate the error code.
Don't return success.
Fixes: e5502d15b0 ("mmc: sdhci-of-k1: add support for SpacemiT K1 SoC")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Yixun Lan <dlan@gentoo.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/aDVTtQdXVtRhxOrb@stanley.mountain
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
009c3a4bc4
commit
3358b836d4
|
|
@ -276,7 +276,8 @@ static int spacemit_sdhci_probe(struct platform_device *pdev)
|
|||
|
||||
host->mmc->caps |= MMC_CAP_NEED_RSP_BUSY;
|
||||
|
||||
if (spacemit_sdhci_get_clocks(dev, pltfm_host))
|
||||
ret = spacemit_sdhci_get_clocks(dev, pltfm_host);
|
||||
if (ret)
|
||||
goto err_pltfm;
|
||||
|
||||
ret = sdhci_add_host(host);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user