Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62d721a6 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Ulf Hansson
Browse files

mmc: meson-gx: remove unneeded checks in remove



The remove callback is called only if probe finished successfully.
Therefore these checks are not needed.

Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: default avatarKevin Hilman <khilman@baylibre.com>
Tested-by: default avatarKevin Hilman <khilman@baylibre.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 4136fcb5
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -808,13 +808,9 @@ static int meson_mmc_remove(struct platform_device *pdev)
{
	struct meson_host *host = dev_get_drvdata(&pdev->dev);

	if (WARN_ON(!host))
		return 0;

	/* disable interrupts */
	writel(0, host->regs + SD_EMMC_IRQ_EN);

	if (host->bounce_buf)
	dma_free_coherent(host->dev, host->bounce_buf_size,
			  host->bounce_buf, host->bounce_dma_addr);