diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-28 12:33:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-28 12:33:42 -0400 |
commit | 00ebb6382b8d9c7c15b5f8ad230670d8161d38dd (patch) | |
tree | 23591394b83776953aaf0b382d4c7b09e0ca1e34 /drivers/mmc/host/at91_mci.c | |
parent | 11cc21f5f5575b9abd14d53a6055ccbf72b67573 (diff) | |
parent | 536ac998f6076a0ae423b1046b85d7690e8b7107 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc: (66 commits)
mmc: add new sdhci-pxa driver for Marvell SoCs
mmc: make number of mmcblk minors configurable
mmc_spi: Recover from CRC errors for r/w operation over SPI.
mmc: sdhci-pltfm: add -pltfm driver for imx35/51
mmc: sdhci-of-esdhc: factor out common stuff
mmc: sdhci_pltfm: pass more data on custom init call
mmc: sdhci: introduce get_ro private write-protect hook
mmc: sdhci-pltfm: move .h file into appropriate subdir
mmc: sdhci-pltfm: Add structure for host-specific data
mmc: fix cb710 kconfig dependency warning
mmc: cb710: remove debugging printk (info duplicated from mmc-core)
mmc: cb710: clear irq handler on init() error path
mmc: cb710: remove unnecessary msleep()
mmc: cb710: implement get_cd() callback
mmc: cb710: partially demystify clock selection
mmc: add a file to debugfs for changing host clock at runtime
mmc: sdhci: allow for eMMC 74 clock generation by controller
mmc: sdhci: highspeed: check for mmc as well as sd cards
mmc: sdhci: Add Moorestown device support
mmc: sdhci: Intel Medfield support
...
Diffstat (limited to 'drivers/mmc/host/at91_mci.c')
-rw-r--r-- | drivers/mmc/host/at91_mci.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/mmc/host/at91_mci.c b/drivers/mmc/host/at91_mci.c index 87226cd202a5..591ab540b407 100644 --- a/drivers/mmc/host/at91_mci.c +++ b/drivers/mmc/host/at91_mci.c | |||
@@ -928,7 +928,7 @@ static int __init at91_mci_probe(struct platform_device *pdev) | |||
928 | if (!res) | 928 | if (!res) |
929 | return -ENXIO; | 929 | return -ENXIO; |
930 | 930 | ||
931 | if (!request_mem_region(res->start, res->end - res->start + 1, DRIVER_NAME)) | 931 | if (!request_mem_region(res->start, resource_size(res), DRIVER_NAME)) |
932 | return -EBUSY; | 932 | return -EBUSY; |
933 | 933 | ||
934 | mmc = mmc_alloc_host(sizeof(struct at91mci_host), &pdev->dev); | 934 | mmc = mmc_alloc_host(sizeof(struct at91mci_host), &pdev->dev); |
@@ -947,8 +947,7 @@ static int __init at91_mci_probe(struct platform_device *pdev) | |||
947 | mmc->max_blk_size = MCI_MAXBLKSIZE; | 947 | mmc->max_blk_size = MCI_MAXBLKSIZE; |
948 | mmc->max_blk_count = MCI_BLKATONCE; | 948 | mmc->max_blk_count = MCI_BLKATONCE; |
949 | mmc->max_req_size = MCI_BUFSIZE; | 949 | mmc->max_req_size = MCI_BUFSIZE; |
950 | mmc->max_phys_segs = MCI_BLKATONCE; | 950 | mmc->max_segs = MCI_BLKATONCE; |
951 | mmc->max_hw_segs = MCI_BLKATONCE; | ||
952 | mmc->max_seg_size = MCI_BUFSIZE; | 951 | mmc->max_seg_size = MCI_BUFSIZE; |
953 | 952 | ||
954 | host = mmc_priv(mmc); | 953 | host = mmc_priv(mmc); |
@@ -1017,7 +1016,7 @@ static int __init at91_mci_probe(struct platform_device *pdev) | |||
1017 | /* | 1016 | /* |
1018 | * Map I/O region | 1017 | * Map I/O region |
1019 | */ | 1018 | */ |
1020 | host->baseaddr = ioremap(res->start, res->end - res->start + 1); | 1019 | host->baseaddr = ioremap(res->start, resource_size(res)); |
1021 | if (!host->baseaddr) { | 1020 | if (!host->baseaddr) { |
1022 | ret = -ENOMEM; | 1021 | ret = -ENOMEM; |
1023 | goto fail1; | 1022 | goto fail1; |
@@ -1093,7 +1092,7 @@ fail4b: | |||
1093 | fail5: | 1092 | fail5: |
1094 | mmc_free_host(mmc); | 1093 | mmc_free_host(mmc); |
1095 | fail6: | 1094 | fail6: |
1096 | release_mem_region(res->start, res->end - res->start + 1); | 1095 | release_mem_region(res->start, resource_size(res)); |
1097 | dev_err(&pdev->dev, "probe failed, err %d\n", ret); | 1096 | dev_err(&pdev->dev, "probe failed, err %d\n", ret); |
1098 | return ret; | 1097 | return ret; |
1099 | } | 1098 | } |
@@ -1138,7 +1137,7 @@ static int __exit at91_mci_remove(struct platform_device *pdev) | |||
1138 | 1137 | ||
1139 | iounmap(host->baseaddr); | 1138 | iounmap(host->baseaddr); |
1140 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 1139 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
1141 | release_mem_region(res->start, res->end - res->start + 1); | 1140 | release_mem_region(res->start, resource_size(res)); |
1142 | 1141 | ||
1143 | mmc_free_host(mmc); | 1142 | mmc_free_host(mmc); |
1144 | platform_set_drvdata(pdev, NULL); | 1143 | platform_set_drvdata(pdev, NULL); |