Skip to content

Commit

Permalink
mmc: sdhi: fix module unloading
Browse files Browse the repository at this point in the history
MMC host drivers must be able to process interrupts during
mmc_remove_host().

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Guennadi Liakhovetski authored and Chris Ball committed Jun 19, 2011
1 parent b9c350a commit 742a0c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/mmc/host/sh_mobile_sdhi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 742a0c7

Please sign in to comment.