[PATCH 3/8] mmc: sdhci: fix coding style in sdhci_finish_data

2012-11-09 Thread Tushar Behera
Signed-off-by: Tushar Behera 
---
 drivers/mmc/host/sdhci.c |7 ---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 2d3d76e..73bb41f 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -924,9 +924,9 @@ static void sdhci_finish_data(struct sdhci_host *host)
host->data = NULL;
 
if (host->flags & SDHCI_REQ_USE_DMA) {
-   if (host->flags & SDHCI_USE_ADMA)
+   if (host->flags & SDHCI_USE_ADMA) {
sdhci_adma_table_post(host, data);
-   else {
+   } else {
dma_unmap_sg(mmc_dev(host->mmc), data->sg,
data->sg_len, (data->flags & MMC_DATA_READ) ?
DMA_FROM_DEVICE : DMA_TO_DEVICE);
@@ -964,8 +964,9 @@ static void sdhci_finish_data(struct sdhci_host *host)
}
 
sdhci_send_command(host, data->stop);
-   } else
+   } else {
tasklet_schedule(>finish_tasklet);
+   }
 }
 
 static void sdhci_send_command(struct sdhci_host *host, struct mmc_command 
*cmd)
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 3/8] mmc: sdhci: fix coding style in sdhci_finish_data

2012-11-09 Thread Tushar Behera
Signed-off-by: Tushar Behera tushar.beh...@linaro.org
---
 drivers/mmc/host/sdhci.c |7 ---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 2d3d76e..73bb41f 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -924,9 +924,9 @@ static void sdhci_finish_data(struct sdhci_host *host)
host-data = NULL;
 
if (host-flags  SDHCI_REQ_USE_DMA) {
-   if (host-flags  SDHCI_USE_ADMA)
+   if (host-flags  SDHCI_USE_ADMA) {
sdhci_adma_table_post(host, data);
-   else {
+   } else {
dma_unmap_sg(mmc_dev(host-mmc), data-sg,
data-sg_len, (data-flags  MMC_DATA_READ) ?
DMA_FROM_DEVICE : DMA_TO_DEVICE);
@@ -964,8 +964,9 @@ static void sdhci_finish_data(struct sdhci_host *host)
}
 
sdhci_send_command(host, data-stop);
-   } else
+   } else {
tasklet_schedule(host-finish_tasklet);
+   }
 }
 
 static void sdhci_send_command(struct sdhci_host *host, struct mmc_command 
*cmd)
-- 
1.7.4.1

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/