mmc: sdhci-pci: Remove unused member cd_con_id
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 2 Jan 2017 12:05:24 +0000 (14:05 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:20:06 +0000 (13:20 +0100)
cd_con_id is not used and always NULL.
Remove it to make code a bit more cleaner.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pci-core.c
drivers/mmc/host/sdhci-pci.h

index 1a72d32af07f333504f7d85ff287fcd5dbf62c7b..5c275b7d0d536089ed4064dde0cf8bb77e6a921e 100644 (file)
@@ -424,7 +424,6 @@ static int byt_sdio_probe_slot(struct sdhci_pci_slot *slot)
 static int byt_sd_probe_slot(struct sdhci_pci_slot *slot)
 {
        slot->host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY;
-       slot->cd_con_id = NULL;
        slot->cd_idx = 0;
        slot->cd_override_level = true;
        if (slot->chip->pdev->device == PCI_DEVICE_ID_INTEL_BXT_SD ||
@@ -1817,7 +1816,7 @@ static struct sdhci_pci_slot *sdhci_pci_probe_slot(
        host->mmc->caps2 |= MMC_CAP2_NO_PRESCAN_POWERUP;
 
        if (slot->cd_idx >= 0) {
-               ret = mmc_gpiod_request_cd(host->mmc, slot->cd_con_id, slot->cd_idx,
+               ret = mmc_gpiod_request_cd(host->mmc, NULL, slot->cd_idx,
                                           slot->cd_override_level, 0, NULL);
                if (ret == -EPROBE_DEFER)
                        goto remove;
index 4abdaed72bd481b9195a42d0ead707c02227b7fa..36f743464fcceded6afa7fcb0aaf8e7f26c1440c 100644 (file)
@@ -81,7 +81,6 @@ struct sdhci_pci_slot {
        int                     cd_gpio;
        int                     cd_irq;
 
-       char                    *cd_con_id;
        int                     cd_idx;
        bool                    cd_override_level;