lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1390391165-27906-2-git-send-email-michael@amarulasolutions.com>
Date:	Wed, 22 Jan 2014 12:46:03 +0100
From:	Michael Trimarchi <michael@...rulasolutions.com>
To:	linux-mmc@...r.kernel.org
Cc:	Chris Ball <cjb@...top.org>, linux-kernel@...r.kernel.org,
	Sekhar Nori <nsekhar@...com>,
	Manjunathappa Prakash <prakash.pm@...com>
Subject: [RFC PATCH 1/3] ARM: mmc: davinci: remove unused variable mmc_pclk and fix opendrain clock calculation

Signed-off-by: Michael Trimarchi <michael@...rulasolutions.com>
---
 drivers/mmc/host/davinci_mmc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c
index e9fa87d..8ea09ef 100644
--- a/drivers/mmc/host/davinci_mmc.c
+++ b/drivers/mmc/host/davinci_mmc.c
@@ -683,7 +683,7 @@ static unsigned int calculate_freq_for_card(struct mmc_davinci_host *host,
 
 static void calculate_clk_divider(struct mmc_host *mmc, struct mmc_ios *ios)
 {
-	unsigned int open_drain_freq = 0, mmc_pclk = 0;
+	unsigned int open_drain_freq = 0;
 	unsigned int mmc_push_pull_freq = 0;
 	struct mmc_davinci_host *host = mmc_priv(mmc);
 
@@ -693,7 +693,7 @@ static void calculate_clk_divider(struct mmc_host *mmc, struct mmc_ios *ios)
 		/* Ignoring the init clock value passed for fixing the inter
 		 * operability with different cards.
 		 */
-		open_drain_freq = ((unsigned int)mmc_pclk
+		open_drain_freq = ((unsigned int)host->mmc_input_clk
 				/ (2 * MMCSD_INIT_CLOCK)) - 1;
 
 		if (open_drain_freq > 0xFF)
-- 
1.8.1.2

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ