We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 003fb0a commit e5bce3cCopy full SHA for e5bce3c
drivers/mmc/host/sdhci-cadence.c
@@ -540,9 +540,11 @@ static int sdhci_cdns_probe(struct platform_device *pdev)
540
541
if (host->mmc->caps & MMC_CAP_HW_RESET) {
542
priv->rst_hw = devm_reset_control_get_optional_exclusive(dev, NULL);
543
- if (IS_ERR(priv->rst_hw))
544
- return dev_err_probe(mmc_dev(host->mmc), PTR_ERR(priv->rst_hw),
545
- "reset controller error\n");
+ if (IS_ERR(priv->rst_hw)) {
+ ret = dev_err_probe(mmc_dev(host->mmc), PTR_ERR(priv->rst_hw),
+ "reset controller error\n");
546
+ goto free;
547
+ }
548
if (priv->rst_hw)
549
host->mmc_host_ops.card_hw_reset = sdhci_cdns_mmc_hw_reset;
550
}
0 commit comments