summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2024-10-29 14:17:48 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2024-10-30 12:02:11 +0100
commit7acbd2da48faee6ff856b2322c799d5c7b144d52 (patch)
tree451cd22d810b4ab253ffa95a1b41cfbad928d98e /drivers/mmc
parent767c2b21cb5855455aeff6bd7fb76585dcab5860 (diff)
mmc: core: Add error handling of sd_uhs2_power_up()
In sd_uhs2_reinit() the call to sd_uhs2_power_up() lacks error handling, so let's add it. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Adrian Hunter <adrian.hunter@intel.com> Message-ID: <20241029131752.226764-3-ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/sd_uhs2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/core/sd_uhs2.c b/drivers/mmc/core/sd_uhs2.c
index 06857e1bbdb0..f0d631b4bbd7 100644
--- a/drivers/mmc/core/sd_uhs2.c
+++ b/drivers/mmc/core/sd_uhs2.c
@@ -999,7 +999,9 @@ static int sd_uhs2_reinit(struct mmc_host *host)
struct mmc_card *card = host->card;
int err;
- sd_uhs2_power_up(host);
+ err = sd_uhs2_power_up(host);
+ if (err)
+ return err;
err = sd_uhs2_phy_init(host);
if (err)