diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index b2610be29ed4..f3cc5ed87c59 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -3955,10 +3955,8 @@ static int sdhci_msm_probe(struct platform_device *pdev) goto pltfm_free; } - if (ret <= 2) { + if (ret <= 2) sdhci_slot[ret-1] = msm_host; - host->slot_no = ret; - } msm_host->pdata = sdhci_msm_populate_pdata(&pdev->dev, msm_host); diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 9beb37b4e241..34f8ae4ab105 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -172,8 +172,6 @@ static void sdhci_dumpregs(struct sdhci_host *host) host->ops->dump_vendor_regs(host); sdhci_dump_state(host); pr_info(DRIVER_NAME ": ===========================================\n"); - if (host->slot_no == 1) - BUG_ON(1); } /*****************************************************************************\ diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index 9b39821b57ef..93120f17b91e 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h @@ -611,8 +611,6 @@ struct sdhci_host { ktime_t reset_wa_t; /* time when the reset workaround is applied */ int reset_wa_cnt; /* total number of times workaround is used */ - int slot_no; - unsigned long private[0] ____cacheline_aligned; };