hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/mmc/host/sdhci-pxav3.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2010 Marvell International Ltd.
34 * Zhangfei Gao <zhangfei.gao@marvell.com>
....@@ -5,33 +6,20 @@
56 * Mingwei Wang <mwwang@marvell.com>
67 * Philip Rakity <prakity@marvell.com>
78 * Mark Brown <markb@marvell.com>
8
- *
9
- * This software is licensed under the terms of the GNU General Public
10
- * License version 2, as published by the Free Software Foundation, and
11
- * may be copied, distributed, and modified under those terms.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
189 */
1910 #include <linux/err.h>
2011 #include <linux/init.h>
2112 #include <linux/platform_device.h>
2213 #include <linux/clk.h>
2314 #include <linux/io.h>
24
-#include <linux/gpio.h>
2515 #include <linux/mmc/card.h>
2616 #include <linux/mmc/host.h>
27
-#include <linux/mmc/slot-gpio.h>
2817 #include <linux/platform_data/pxa_sdhci.h>
2918 #include <linux/slab.h>
3019 #include <linux/delay.h>
3120 #include <linux/module.h>
3221 #include <linux/of.h>
3322 #include <linux/of_device.h>
34
-#include <linux/of_gpio.h>
3523 #include <linux/pm.h>
3624 #include <linux/pm_runtime.h>
3725 #include <linux/mbus.h>
....@@ -452,16 +440,6 @@
452440 host->mmc->caps2 |= pdata->host_caps2;
453441 if (pdata->pm_caps)
454442 host->mmc->pm_caps |= pdata->pm_caps;
455
-
456
- if (gpio_is_valid(pdata->ext_cd_gpio)) {
457
- ret = mmc_gpio_request_cd(host->mmc, pdata->ext_cd_gpio,
458
- 0);
459
- if (ret) {
460
- dev_err(mmc_dev(host->mmc),
461
- "failed to allocate card detect gpio\n");
462
- goto err_cd_req;
463
- }
464
- }
465443 }
466444
467445 pm_runtime_get_noresume(&pdev->dev);
....@@ -486,7 +464,6 @@
486464 pm_runtime_disable(&pdev->dev);
487465 pm_runtime_put_noidle(&pdev->dev);
488466 err_of_parse:
489
-err_cd_req:
490467 err_mbus_win:
491468 clk_disable_unprepare(pxa->clk_io);
492469 clk_disable_unprepare(pxa->clk_core);
....@@ -577,7 +554,7 @@
577554 if (!IS_ERR(pxa->clk_core))
578555 clk_prepare_enable(pxa->clk_core);
579556
580
- return sdhci_runtime_resume_host(host);
557
+ return sdhci_runtime_resume_host(host, 0);
581558 }
582559 #endif
583560