diff options
author | Adrian Hunter <adrian.hunter@nokia.com> | 2009-09-22 19:44:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 10:39:35 -0400 |
commit | 23d99bb923fc23aeb1086d60eb1c70602b4e2036 (patch) | |
tree | b0c75213a4baa94f31460ed9406bb40e4918443f /drivers/mmc | |
parent | a3f406f861456987c9fce8cfa0a00d07b16cdec0 (diff) |
omap_hsmmc: make use of new MMC_CAP_NONREMOVABLE host capability
Let the board specify that a card is nonremovable e.g. eMMC
Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Acked-by: Matt Fleming <matt@console-pimps.org>
Cc: Ian Molton <ian@mnementh.co.uk>
Cc: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
Cc: Jarkko Lavinen <jarkko.lavinen@nokia.com>
Cc: Denis Karpov <ext-denis.2.karpov@nokia.com>
Cc: Pierre Ossman <pierre@ossman.eu>
Cc: Philip Langdale <philipl@overt.org>
Cc: "Madhusudhan" <madhu.cr@ti.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index f588deff8b2..a20c38385d2 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c | |||
@@ -1390,6 +1390,9 @@ static int __init omap_mmc_probe(struct platform_device *pdev) | |||
1390 | else if (pdata->slots[host->slot_id].wires >= 4) | 1390 | else if (pdata->slots[host->slot_id].wires >= 4) |
1391 | mmc->caps |= MMC_CAP_4_BIT_DATA; | 1391 | mmc->caps |= MMC_CAP_4_BIT_DATA; |
1392 | 1392 | ||
1393 | if (pdata->slots[host->slot_id].nonremovable) | ||
1394 | mmc->caps |= MMC_CAP_NONREMOVABLE; | ||
1395 | |||
1393 | omap_hsmmc_init(host); | 1396 | omap_hsmmc_init(host); |
1394 | 1397 | ||
1395 | /* Select DMA lines */ | 1398 | /* Select DMA lines */ |