mmc: sdhci-cadence: Fix an error handling path in sdhci_cdns_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 25 Apr 2023 13:41:26 +0000 (15:41 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 May 2023 09:16:15 +0000 (11:16 +0200)
commite5bce3c15ad20d7dd4f8393513b1c41373d2dc37
treecc92624a08287f8de7691f10aa51ec4bc2365770
parent003fb0a51162d940f25fc35e70b0996a12c9e08a
mmc: sdhci-cadence: Fix an error handling path in sdhci_cdns_probe()

If devm_reset_control_get_optional_exclusive() fails, some resources still
need to be released. So branch to the error handling path instead of
returning directly.

Fixes: aad53d4ee756 ("mmc: sdhci-cadence: Support mmc hardware reset")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Brad Larson <blarson@amd.com>
Link: https://lore.kernel.org/r/f61599a9ef23767c2d66e5af9c975f05ef1cec6b.1682430069.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-cadence.c