aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mmc/host/msm_sdcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c
index a4c865a5286b..d06539dff7cc 100644
--- a/drivers/mmc/host/msm_sdcc.c
+++ b/drivers/mmc/host/msm_sdcc.c
@@ -939,7 +939,7 @@ static void msmsdcc_setup_gpio(struct msmsdcc_host *host, bool enable)
939 struct msm_mmc_gpio_data *curr; 939 struct msm_mmc_gpio_data *curr;
940 int i, rc = 0; 940 int i, rc = 0;
941 941
942 if (!host->plat->gpio_data && host->gpio_config_status == enable) 942 if (!host->plat->gpio_data || host->gpio_config_status == enable)
943 return; 943 return;
944 944
945 curr = host->plat->gpio_data; 945 curr = host->plat->gpio_data;