[PATCH 1/5 RFC] mmc: sdhci-iproc: Clean up platform allocations if shdci init fails
Scott Branden
sbranden at broadcom.com
Mon Jan 18 13:31:04 PST 2016
This patch looks fine.
On 16-01-17 06:59 AM, Stefan Wahren wrote:
> This patch adopts the changes from 475c9e43bfa7 ("mmc: sdhci-bcm2835:
> Clean up platform allocations if sdhci init fails") to sdhci-iproc.
>
> Signed-off-by: Stefan Wahren <stefan.wahren at i2se.com>
Acked-by: Scott Branden <sbranden at broadcom.com>
> ---
> drivers/mmc/host/sdhci-iproc.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/sdhci-iproc.c b/drivers/mmc/host/sdhci-iproc.c
> index 3b423b0..e22060a 100644
> --- a/drivers/mmc/host/sdhci-iproc.c
> +++ b/drivers/mmc/host/sdhci-iproc.c
> @@ -213,7 +213,11 @@ static int sdhci_iproc_probe(struct platform_device *pdev)
> host->caps1 = iproc_host->data->caps1;
> }
>
> - return sdhci_add_host(host);
> + ret = sdhci_add_host(host);
> + if (ret)
> + goto err;
> +
> + return 0;
>
> err:
> sdhci_pltfm_free(pdev);
>
More information about the linux-rpi-kernel
mailing list