From patchwork Fri Nov 9 11:39:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 1720101 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 DFC5BDF264 for ; Fri, 9 Nov 2012 11:47:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753024Ab2KILrc (ORCPT ); Fri, 9 Nov 2012 06:47:32 -0500 Received: from mail-pb0-f46.google.com ([209.85.160.46]:36122 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752920Ab2KILqF (ORCPT ); Fri, 9 Nov 2012 06:46:05 -0500 Received: by mail-pb0-f46.google.com with SMTP id rr4so2787918pbb.19 for ; Fri, 09 Nov 2012 03:46:05 -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=L/2sqH8mfTSiJk8Z4ziQZR7PrMxrqBEmMylRxt1Rtg0=; b=kx92AVVVYgST21rFILwNWz0RvY1tQaZmrXXkmNmVCCG3I96UAVInC48HzwP8AZMZoa BWmDErCCKPimN3+SE5qfvyV9wUT3Ti6XJbTd3hR17hK+hM1pRRs5EL122S+VHdGevvog gy6kUMHKbcVeehyNBhCL/+XOy3WcznrGUw9T4NxAmdRMyBFBwXqWDcPrZwiS2p6WG8DD MK+7d8A1QPj29dEIvn3KekpJGsWFW3TpxtoMZRcdUmZ8JIxu8Gm4IAHSgScyTI5MIqiS CvOw1yGxgrKtq0YKd1crp1qamc8r3pkiY4AIQphcuITVtvq5ukFDUgwac/UidRSLfCM6 Be6Q== Received: by 10.68.218.97 with SMTP id pf1mr32786916pbc.96.1352461565474; Fri, 09 Nov 2012 03:46:05 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id tm8sm17629901pbc.48.2012.11.09.03.46.02 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 09 Nov 2012 03:46:04 -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 4/8] mmc: sdhci: fix coding style in sdhci_set_clock Date: Fri, 9 Nov 2012 17:09:54 +0530 Message-Id: <1352461198-21941-5-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: ALoCoQnW2hfkM/dg7SvQ1X8RQddzbYCeecEAZWkBWfm8UMVDpHQTdmkeLCRMEq5Ts34lwIRPX2mM 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 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 73bb41f..28da461 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1138,9 +1138,9 @@ static void sdhci_set_clock(struct sdhci_host *host, unsigned int clock) } } else { /* Version 3.00 divisors must be a multiple of 2. */ - if (host->max_clk <= clock) + if (host->max_clk <= clock) { div = 1; - else { + } else { for (div = 2; div < SDHCI_MAX_DIV_SPEC_300; div += 2) { if ((host->max_clk / div) <= clock)