From: Viresh Kumar Date: Mon, 12 Sep 2011 11:22:49 +0000 (+0530) Subject: mmc: sdhci-spear: Don't set power gpio to 1 on probe X-Git-Tag: v3.2-rc1~129^2~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46cbd56ad4a686c52eeab427faf7e28415bbf28f;p=platform%2Fupstream%2Fkernel-adaptation-pc.git mmc: sdhci-spear: Don't set power gpio to 1 on probe Currently if card_power_gpio is passed from platform data, it is acquired and its value is either set or reset. After that we overwrite it with 1, which is not required. So, this patch removes the extra line which sets its value. Signed-off-by: Viresh Kumar Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/sdhci-spear.c b/drivers/mmc/host/sdhci-spear.c index 60a4c97..a0630c3 100644 --- a/drivers/mmc/host/sdhci-spear.c +++ b/drivers/mmc/host/sdhci-spear.c @@ -177,8 +177,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) {