Skip to content

Commit

Permalink
mmc: sdhci-spear: Don't set power gpio to 1 on probe
Browse files Browse the repository at this point in the history
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 <viresh.kumar@st.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Viresh Kumar authored and Chris Ball committed Oct 26, 2011
1 parent e51cbc9 commit 46cbd56
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/mmc/host/sdhci-spear.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 46cbd56

Please sign in to comment.