|
@@ -21,17 +21,14 @@
|
|
|
#include <linux/platform_device.h>
|
|
|
#include <linux/clk.h>
|
|
|
#include <linux/io.h>
|
|
|
-#include <linux/gpio.h>
|
|
|
#include <linux/mmc/card.h>
|
|
|
#include <linux/mmc/host.h>
|
|
|
-#include <linux/mmc/slot-gpio.h>
|
|
|
#include <linux/platform_data/pxa_sdhci.h>
|
|
|
#include <linux/slab.h>
|
|
|
#include <linux/delay.h>
|
|
|
#include <linux/module.h>
|
|
|
#include <linux/of.h>
|
|
|
#include <linux/of_device.h>
|
|
|
-#include <linux/of_gpio.h>
|
|
|
#include <linux/pm.h>
|
|
|
#include <linux/pm_runtime.h>
|
|
|
#include <linux/mbus.h>
|
|
@@ -452,16 +449,6 @@ static int sdhci_pxav3_probe(struct platform_device *pdev)
|
|
|
host->mmc->caps2 |= pdata->host_caps2;
|
|
|
if (pdata->pm_caps)
|
|
|
host->mmc->pm_caps |= pdata->pm_caps;
|
|
|
-
|
|
|
- if (gpio_is_valid(pdata->ext_cd_gpio)) {
|
|
|
- ret = mmc_gpio_request_cd(host->mmc, pdata->ext_cd_gpio,
|
|
|
- 0);
|
|
|
- if (ret) {
|
|
|
- dev_err(mmc_dev(host->mmc),
|
|
|
- "failed to allocate card detect gpio\n");
|
|
|
- goto err_cd_req;
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
pm_runtime_get_noresume(&pdev->dev);
|
|
@@ -486,7 +473,6 @@ err_add_host:
|
|
|
pm_runtime_disable(&pdev->dev);
|
|
|
pm_runtime_put_noidle(&pdev->dev);
|
|
|
err_of_parse:
|
|
|
-err_cd_req:
|
|
|
err_mbus_win:
|
|
|
clk_disable_unprepare(pxa->clk_io);
|
|
|
clk_disable_unprepare(pxa->clk_core);
|