.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/drivers/mmc/host/omap.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * Written by Tuukka Tikkanen and Juha Yrjölä<juha.yrjola@nokia.com> |
---|
6 | 7 | * Misc hacks here and there by Tony Lindgren <tony@atomide.com> |
---|
7 | 8 | * Other hacks (DMA, SD, etc) by David Brownell |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License version 2 as |
---|
11 | | - * published by the Free Software Foundation. |
---|
12 | 9 | */ |
---|
13 | 10 | |
---|
14 | 11 | #include <linux/module.h> |
---|
.. | .. |
---|
1247 | 1244 | |
---|
1248 | 1245 | mmc->caps = 0; |
---|
1249 | 1246 | if (host->pdata->slots[id].wires >= 4) |
---|
1250 | | - mmc->caps |= MMC_CAP_4_BIT_DATA | MMC_CAP_ERASE; |
---|
| 1247 | + mmc->caps |= MMC_CAP_4_BIT_DATA; |
---|
1251 | 1248 | |
---|
1252 | 1249 | mmc->ops = &mmc_omap_ops; |
---|
1253 | 1250 | mmc->f_min = 400000; |
---|
.. | .. |
---|
1347 | 1344 | |
---|
1348 | 1345 | irq = platform_get_irq(pdev, 0); |
---|
1349 | 1346 | if (irq < 0) |
---|
1350 | | - return -ENXIO; |
---|
| 1347 | + return irq; |
---|
1351 | 1348 | |
---|
1352 | 1349 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
---|
1353 | 1350 | host->virt_base = devm_ioremap_resource(&pdev->dev, res); |
---|