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

Commit 742a0c7c authored by Guennadi Liakhovetski's avatar Guennadi Liakhovetski Committed by Chris Ball
Browse files

mmc: sdhi: fix module unloading



MMC host drivers must be able to process interrupts during
mmc_remove_host().

Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent b9c350a0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -165,13 +165,14 @@ static int sh_mobile_sdhi_remove(struct platform_device *pdev)

	p->pdata = NULL;

	tmio_mmc_host_remove(host);

	for (i = 0; i < 3; i++) {
		irq = platform_get_irq(pdev, i);
		if (irq >= 0)
			free_irq(irq, host);
	}

	tmio_mmc_host_remove(host);
	clk_disable(priv->clk);
	clk_put(priv->clk);
	kfree(priv);