[PATCH] mmc/sdhci-spear: Don't set power gpio to 1 on probe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently if card_power_gpio is passed from platform data, it is acquired and
its value is either set or reset. After that its value is written 1, which is
not required.

So, this patch removes this extra line while sets its value.

Signed-off-by: Viresh Kumar <viresh.kumar@xxxxxx>
---
 drivers/mmc/host/sdhci-spear.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/host/sdhci-spear.c b/drivers/mmc/host/sdhci-spear.c
index a152b5c..63cc8b6 100644
--- a/drivers/mmc/host/sdhci-spear.c
+++ b/drivers/mmc/host/sdhci-spear.c
@@ -178,8 +178,6 @@ static int __devinit sdhci_probe(struct platform_device *pdev)
 					sdhci->data->card_power_gpio);
 			goto err_pgpio_direction;
 		}
-
-		gpio_set_value(sdhci->data->card_power_gpio, 1);
 	}
 
 	if (sdhci->data->card_int_gpio >= 0) {
-- 
1.7.2.2

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux