From patchwork Fri Nov 9 11:39:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 1720111 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id CFCFFDF264 for ; Fri, 9 Nov 2012 11:47:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751228Ab2KILqF (ORCPT ); Fri, 9 Nov 2012 06:46:05 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:42166 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752877Ab2KILqC (ORCPT ); Fri, 9 Nov 2012 06:46:02 -0500 Received: by mail-pa0-f46.google.com with SMTP id hz1so2731136pad.19 for ; Fri, 09 Nov 2012 03:46:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=hs0bBdoxls//G3JqChdmJB5gsPCIsk7QFvGSd6qmORQ=; b=TADsNPDZTL4TGf8AYNj1Y2x2sAOBTI4d/FJEM345QlNoZt70YRKLiDYW+p3pnyjpmG ZVpYw2heZlTRN+Eyta/zypvykrXPD24OqBxYNKjli59K7TwXhfX+2Xmhr2LFxfnC4ElX ST9jlFs4TAa0LIw2a5oAKTzNY3rClB51jff68Tvd353lFuU6F7bP0lm74JExuxLn9Deu DKpGTUp6wVGrY6PZYwzHXBl7flgiL2EuUeOZ2CM8bGWVA0CdCdf4+AxaMcSQOSXrD2FO CPMk2pPYX+Px9c71JnpwwWBM5n9/bxYUHC91aTk7xn41c1tt94UVyMZ5/TY4D2gFWqMz fbvg== Received: by 10.66.72.136 with SMTP id d8mr31087061pav.4.1352461562153; Fri, 09 Nov 2012 03:46:02 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id tm8sm17629901pbc.48.2012.11.09.03.45.59 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 09 Nov 2012 03:46:01 -0800 (PST) From: Tushar Behera To: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Cc: cjb@laptop.org, patches@linaro.org Subject: [PATCH 3/8] mmc: sdhci: fix coding style in sdhci_finish_data Date: Fri, 9 Nov 2012 17:09:53 +0530 Message-Id: <1352461198-21941-4-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1352461198-21941-1-git-send-email-tushar.behera@linaro.org> References: <1352461198-21941-1-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQlaRy//RHmciHGwQpAnwa2IaT5TZeD2eBJA+1yXMfGOLReBgckuE0ZpD/NxdEdpUnJh8N/r Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org 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(&host->finish_tasklet); + } } static void sdhci_send_command(struct sdhci_host *host, struct mmc_command *cmd)