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

Commit a01fc2a2 authored by Michał Zegan's avatar Michał Zegan Committed by Ulf Hansson
Browse files

mmc: meson-gx: remove mmc host on device removal



The mmc host was added in meson_mmc_probe, but never removed in
meson_mmc_remove.
Fix that by removing the host before deallocating other resources.

Signed-off-by: default avatarMichał Zegan <webczat@webczatnet.pl>
Tested-by: default avatarMichał Zegan <webczat@webczatnet.pl>
Acked-by: default avatarKevin Hilman <khilman@baylibre.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent eb7c00e1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -793,6 +793,8 @@ static int meson_mmc_remove(struct platform_device *pdev)
{
	struct meson_host *host = dev_get_drvdata(&pdev->dev);

	mmc_remove_host(host->mmc);

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