Skip to content

Commit a01fc2a

Browse files
Michał Zeganstorulf
authored andcommitted
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: Michał Zegan <[email protected]> Tested-by: Michał Zegan <[email protected]> Acked-by: Kevin Hilman <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent eb7c00e commit a01fc2a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/mmc/host/meson-gx-mmc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,8 @@ static int meson_mmc_remove(struct platform_device *pdev)
793793
{
794794
struct meson_host *host = dev_get_drvdata(&pdev->dev);
795795

796+
mmc_remove_host(host->mmc);
797+
796798
/* disable interrupts */
797799
writel(0, host->regs + SD_EMMC_IRQ_EN);
798800

0 commit comments

Comments
 (0)