Commit 6f9a7619 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'fix' of git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa-linux-2.6

* 'fix' of git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa-linux-2.6:
  [ARM] pxamci: call mmc_remove_host() before freeing resources
parents e9438e31 5d6b1edf
...@@ -760,6 +760,8 @@ static int pxamci_remove(struct platform_device *pdev) ...@@ -760,6 +760,8 @@ static int pxamci_remove(struct platform_device *pdev)
if (mmc) { if (mmc) {
struct pxamci_host *host = mmc_priv(mmc); struct pxamci_host *host = mmc_priv(mmc);
mmc_remove_host(mmc);
if (host->pdata) { if (host->pdata) {
gpio_cd = host->pdata->gpio_card_detect; gpio_cd = host->pdata->gpio_card_detect;
gpio_ro = host->pdata->gpio_card_ro; gpio_ro = host->pdata->gpio_card_ro;
...@@ -779,8 +781,6 @@ static int pxamci_remove(struct platform_device *pdev) ...@@ -779,8 +781,6 @@ static int pxamci_remove(struct platform_device *pdev)
if (host->pdata && host->pdata->exit) if (host->pdata && host->pdata->exit)
host->pdata->exit(&pdev->dev, mmc); host->pdata->exit(&pdev->dev, mmc);
mmc_remove_host(mmc);
pxamci_stop_clock(host); pxamci_stop_clock(host);
writel(TXFIFO_WR_REQ|RXFIFO_RD_REQ|CLK_IS_OFF|STOP_CMD| writel(TXFIFO_WR_REQ|RXFIFO_RD_REQ|CLK_IS_OFF|STOP_CMD|
END_CMD_RES|PRG_DONE|DATA_TRAN_DONE, END_CMD_RES|PRG_DONE|DATA_TRAN_DONE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment