sdhci-pxav3.c (62cf983ad84275f8580c807e5e596216c46773cf) sdhci-pxav3.c (20f1f2d7d4a497ce6c51866e23ce5f452e3aeb99)
1/*
2 * Copyright (C) 2010 Marvell International Ltd.
3 * Zhangfei Gao <zhangfei.gao@marvell.com>
4 * Kevin Wang <dwang4@marvell.com>
5 * Mingwei Wang <mwwang@marvell.com>
6 * Philip Rakity <prakity@marvell.com>
7 * Mark Brown <markb@marvell.com>
8 *

--- 398 unchanged lines hidden (view full) ---

407
408static int sdhci_pxav3_remove(struct platform_device *pdev)
409{
410 struct sdhci_host *host = platform_get_drvdata(pdev);
411 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
412 struct sdhci_pxa *pxa = pltfm_host->priv;
413
414 pm_runtime_get_sync(&pdev->dev);
1/*
2 * Copyright (C) 2010 Marvell International Ltd.
3 * Zhangfei Gao <zhangfei.gao@marvell.com>
4 * Kevin Wang <dwang4@marvell.com>
5 * Mingwei Wang <mwwang@marvell.com>
6 * Philip Rakity <prakity@marvell.com>
7 * Mark Brown <markb@marvell.com>
8 *

--- 398 unchanged lines hidden (view full) ---

407
408static int sdhci_pxav3_remove(struct platform_device *pdev)
409{
410 struct sdhci_host *host = platform_get_drvdata(pdev);
411 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
412 struct sdhci_pxa *pxa = pltfm_host->priv;
413
414 pm_runtime_get_sync(&pdev->dev);
415 sdhci_remove_host(host, 1);
416 pm_runtime_disable(&pdev->dev);
415 pm_runtime_disable(&pdev->dev);
416 pm_runtime_put_noidle(&pdev->dev);
417
417
418 sdhci_remove_host(host, 1);
419
418 clk_disable_unprepare(pxa->clk_io);
419 if (!IS_ERR(pxa->clk_core))
420 clk_disable_unprepare(pxa->clk_core);
421
422 sdhci_pltfm_free(pdev);
423
424 return 0;
425}

--- 98 unchanged lines hidden ---
420 clk_disable_unprepare(pxa->clk_io);
421 if (!IS_ERR(pxa->clk_core))
422 clk_disable_unprepare(pxa->clk_core);
423
424 sdhci_pltfm_free(pdev);
425
426 return 0;
427}

--- 98 unchanged lines hidden ---