diff options
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/mmci.c | 6 | ||||
-rw-r--r-- | drivers/mmc/host/mxcmmc.c | 4 | ||||
-rw-r--r-- | drivers/mmc/host/omap.c | 24 | ||||
-rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 4 | ||||
-rw-r--r-- | drivers/mmc/host/pxamci.c | 3 |
5 files changed, 17 insertions, 24 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 2909bbc8ad00..a663429b3d55 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c | |||
@@ -490,7 +490,7 @@ static void mmci_check_status(unsigned long data) | |||
490 | mod_timer(&host->timer, jiffies + HZ); | 490 | mod_timer(&host->timer, jiffies + HZ); |
491 | } | 491 | } |
492 | 492 | ||
493 | static int mmci_probe(struct amba_device *dev, void *id) | 493 | static int __devinit mmci_probe(struct amba_device *dev, void *id) |
494 | { | 494 | { |
495 | struct mmc_platform_data *plat = dev->dev.platform_data; | 495 | struct mmc_platform_data *plat = dev->dev.platform_data; |
496 | struct mmci_host *host; | 496 | struct mmci_host *host; |
@@ -633,7 +633,7 @@ static int mmci_probe(struct amba_device *dev, void *id) | |||
633 | return ret; | 633 | return ret; |
634 | } | 634 | } |
635 | 635 | ||
636 | static int mmci_remove(struct amba_device *dev) | 636 | static int __devexit mmci_remove(struct amba_device *dev) |
637 | { | 637 | { |
638 | struct mmc_host *mmc = amba_get_drvdata(dev); | 638 | struct mmc_host *mmc = amba_get_drvdata(dev); |
639 | 639 | ||
@@ -730,7 +730,7 @@ static struct amba_driver mmci_driver = { | |||
730 | .name = DRIVER_NAME, | 730 | .name = DRIVER_NAME, |
731 | }, | 731 | }, |
732 | .probe = mmci_probe, | 732 | .probe = mmci_probe, |
733 | .remove = mmci_remove, | 733 | .remove = __devexit_p(mmci_remove), |
734 | .suspend = mmci_suspend, | 734 | .suspend = mmci_suspend, |
735 | .resume = mmci_resume, | 735 | .resume = mmci_resume, |
736 | .id_table = mmci_ids, | 736 | .id_table = mmci_ids, |
diff --git a/drivers/mmc/host/mxcmmc.c b/drivers/mmc/host/mxcmmc.c index dda0be4e25dc..b4a615c55f28 100644 --- a/drivers/mmc/host/mxcmmc.c +++ b/drivers/mmc/host/mxcmmc.c | |||
@@ -42,7 +42,7 @@ | |||
42 | #define HAS_DMA | 42 | #define HAS_DMA |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | #define DRIVER_NAME "imx-mmc" | 45 | #define DRIVER_NAME "mxc-mmc" |
46 | 46 | ||
47 | #define MMC_REG_STR_STP_CLK 0x00 | 47 | #define MMC_REG_STR_STP_CLK 0x00 |
48 | #define MMC_REG_STATUS 0x04 | 48 | #define MMC_REG_STATUS 0x04 |
@@ -707,7 +707,7 @@ static int mxcmci_probe(struct platform_device *pdev) | |||
707 | host->res = r; | 707 | host->res = r; |
708 | host->irq = irq; | 708 | host->irq = irq; |
709 | 709 | ||
710 | host->clk = clk_get(&pdev->dev, "sdhc_clk"); | 710 | host->clk = clk_get(&pdev->dev, NULL); |
711 | if (IS_ERR(host->clk)) { | 711 | if (IS_ERR(host->clk)) { |
712 | ret = PTR_ERR(host->clk); | 712 | ret = PTR_ERR(host->clk); |
713 | goto out_iounmap; | 713 | goto out_iounmap; |
diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c index 67d7b7fef084..5570849188cc 100644 --- a/drivers/mmc/host/omap.c +++ b/drivers/mmc/host/omap.c | |||
@@ -1460,18 +1460,12 @@ static int __init mmc_omap_probe(struct platform_device *pdev) | |||
1460 | if (!host->virt_base) | 1460 | if (!host->virt_base) |
1461 | goto err_ioremap; | 1461 | goto err_ioremap; |
1462 | 1462 | ||
1463 | if (cpu_is_omap24xx()) { | 1463 | host->iclk = clk_get(&pdev->dev, "ick"); |
1464 | host->iclk = clk_get(&pdev->dev, "mmc_ick"); | 1464 | if (IS_ERR(host->iclk)) |
1465 | if (IS_ERR(host->iclk)) | 1465 | goto err_free_mmc_host; |
1466 | goto err_free_mmc_host; | 1466 | clk_enable(host->iclk); |
1467 | clk_enable(host->iclk); | ||
1468 | } | ||
1469 | |||
1470 | if (!cpu_is_omap24xx()) | ||
1471 | host->fclk = clk_get(&pdev->dev, "mmc_ck"); | ||
1472 | else | ||
1473 | host->fclk = clk_get(&pdev->dev, "mmc_fck"); | ||
1474 | 1467 | ||
1468 | host->fclk = clk_get(&pdev->dev, "fck"); | ||
1475 | if (IS_ERR(host->fclk)) { | 1469 | if (IS_ERR(host->fclk)) { |
1476 | ret = PTR_ERR(host->fclk); | 1470 | ret = PTR_ERR(host->fclk); |
1477 | goto err_free_iclk; | 1471 | goto err_free_iclk; |
@@ -1536,10 +1530,10 @@ static int mmc_omap_remove(struct platform_device *pdev) | |||
1536 | if (host->pdata->cleanup) | 1530 | if (host->pdata->cleanup) |
1537 | host->pdata->cleanup(&pdev->dev); | 1531 | host->pdata->cleanup(&pdev->dev); |
1538 | 1532 | ||
1539 | if (host->iclk && !IS_ERR(host->iclk)) | 1533 | mmc_omap_fclk_enable(host, 0); |
1540 | clk_put(host->iclk); | 1534 | clk_put(host->fclk); |
1541 | if (host->fclk && !IS_ERR(host->fclk)) | 1535 | clk_disable(host->iclk); |
1542 | clk_put(host->fclk); | 1536 | clk_put(host->iclk); |
1543 | 1537 | ||
1544 | iounmap(host->virt_base); | 1538 | iounmap(host->virt_base); |
1545 | release_mem_region(pdev->resource[0].start, | 1539 | release_mem_region(pdev->resource[0].start, |
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index a631c81dce12..3916a5618e28 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c | |||
@@ -956,13 +956,13 @@ static int __init omap_mmc_probe(struct platform_device *pdev) | |||
956 | 956 | ||
957 | sema_init(&host->sem, 1); | 957 | sema_init(&host->sem, 1); |
958 | 958 | ||
959 | host->iclk = clk_get(&pdev->dev, "mmchs_ick"); | 959 | host->iclk = clk_get(&pdev->dev, "ick"); |
960 | if (IS_ERR(host->iclk)) { | 960 | if (IS_ERR(host->iclk)) { |
961 | ret = PTR_ERR(host->iclk); | 961 | ret = PTR_ERR(host->iclk); |
962 | host->iclk = NULL; | 962 | host->iclk = NULL; |
963 | goto err1; | 963 | goto err1; |
964 | } | 964 | } |
965 | host->fclk = clk_get(&pdev->dev, "mmchs_fck"); | 965 | host->fclk = clk_get(&pdev->dev, "fck"); |
966 | if (IS_ERR(host->fclk)) { | 966 | if (IS_ERR(host->fclk)) { |
967 | ret = PTR_ERR(host->fclk); | 967 | ret = PTR_ERR(host->fclk); |
968 | host->fclk = NULL; | 968 | host->fclk = NULL; |
diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c index 9702ad3774cf..430095725f9f 100644 --- a/drivers/mmc/host/pxamci.c +++ b/drivers/mmc/host/pxamci.c | |||
@@ -30,9 +30,8 @@ | |||
30 | 30 | ||
31 | #include <asm/sizes.h> | 31 | #include <asm/sizes.h> |
32 | 32 | ||
33 | #include <mach/dma.h> | ||
34 | #include <mach/hardware.h> | 33 | #include <mach/hardware.h> |
35 | #include <mach/pxa-regs.h> | 34 | #include <mach/dma.h> |
36 | #include <mach/mmc.h> | 35 | #include <mach/mmc.h> |
37 | 36 | ||
38 | #include "pxamci.h" | 37 | #include "pxamci.h" |