summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorvjagadish <vjagadish@nvidia.com>2011-09-27 16:12:22 +0530
committerSimone Willett <swillett@nvidia.com>2011-09-27 15:16:35 -0700
commita7b9fd1a1cf2d99db16acf3bc6aa4da44f1d38c2 (patch)
tree0008ff52379118dc9588d435fd393dac7ead620e /drivers
parent95efbf5bb209984a8303b3c7022ce6cc1b06bace (diff)
sdhci: tegra: code cleanup
replaced space with tab in multiple places. Change-Id: Ib89b6cc716c2edb194210d5c4979a903decb2f6e Reviewed-on: http://git-master/r/54677 Reviewed-by: Venkata Jagadish <vjagadish@nvidia.com> Tested-by: Venkata Jagadish <vjagadish@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/sdhci-tegra.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c
index 87d9a6efdf3c..a9cad7c70eab 100644
--- a/drivers/mmc/host/sdhci-tegra.c
+++ b/drivers/mmc/host/sdhci-tegra.c
@@ -598,7 +598,7 @@ static int tegra_sdhci_suspend(struct platform_device *pdev, pm_message_t state)
static int tegra_sdhci_resume(struct platform_device *pdev)
{
struct tegra_sdhci_host *host = platform_get_drvdata(pdev);
- int ret = 0, prev_card_present_stat = 0;
+ int ret = 0;
if (host->card_always_on && is_card_sdio(host->sdhci->mmc->card)) {
int ret = 0;
@@ -630,15 +630,17 @@ static int tegra_sdhci_resume(struct platform_device *pdev)
if (ret)
pr_err("%s: failed, error = %d\n", __func__, ret);
- if (host->cd_gpio != -1) {
+ if (host->cd_gpio != -1) {
+ int prev_card_present_stat = 0;
+
prev_card_present_stat = host->card_present;
host->card_present =
(gpio_get_value(host->cd_gpio) == host->cd_gpio_polarity);
- if(prev_card_present_stat != host->card_present)
+ if (prev_card_present_stat != host->card_present)
sdhci_card_detect_callback(host->sdhci);
- }
+ }
return ret;
}