forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/mmc/host/omap.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/drivers/mmc/host/omap.c
34 *
....@@ -5,10 +6,6 @@
56 * Written by Tuukka Tikkanen and Juha Yrjölä<juha.yrjola@nokia.com>
67 * Misc hacks here and there by Tony Lindgren <tony@atomide.com>
78 * 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.
129 */
1310
1411 #include <linux/module.h>
....@@ -1247,7 +1244,7 @@
12471244
12481245 mmc->caps = 0;
12491246 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;
12511248
12521249 mmc->ops = &mmc_omap_ops;
12531250 mmc->f_min = 400000;
....@@ -1347,7 +1344,7 @@
13471344
13481345 irq = platform_get_irq(pdev, 0);
13491346 if (irq < 0)
1350
- return -ENXIO;
1347
+ return irq;
13511348
13521349 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
13531350 host->virt_base = devm_ioremap_resource(&pdev->dev, res);