mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Michael Trimarchi <michael@amarulasolutions.com>
To: linux-mmc@vger.kernel.org
Cc: Chris Ball <cjb@laptop.org>,
	linux-kernel@vger.kernel.org, Sekhar Nori <nsekhar@ti.com>,
	Manjunathappa Prakash <prakash.pm@ti.com>
Subject: [RFC PATCH 3/3] ARM: mmc: davinci: clock rate is an unsigned long
Date: Wed, 22 Jan 2014 12:46:05 +0100	[thread overview]
Message-ID: <1390391165-27906-4-git-send-email-michael@amarulasolutions.com> (raw)
In-Reply-To: <1390391165-27906-1-git-send-email-michael@amarulasolutions.com>

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

diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c
index 13ac664..0181780 100644
--- a/drivers/mmc/host/davinci_mmc.c
+++ b/drivers/mmc/host/davinci_mmc.c
@@ -183,7 +183,7 @@ struct mmc_davinci_host {
 	struct mmc_data *data;
 	struct mmc_host *mmc;
 	struct clk *clk;
-	unsigned int mmc_input_clk;
+	unsigned long mmc_input_clk;
 	void __iomem *base;
 	struct resource *mem_res;
 	int mmc_irq, sdio_irq;
@@ -654,9 +654,10 @@ static void mmc_davinci_request(struct mmc_host *mmc, struct mmc_request *req)
 }
 
 static unsigned int calculate_freq_for_card(struct mmc_davinci_host *host,
-	unsigned int mmc_req_freq)
+	unsigned long mmc_req_freq)
 {
-	unsigned int mmc_freq = 0, mmc_pclk = 0, mmc_push_pull_divisor = 0;
+	unsigned long mmc_freq = 0, mmc_pclk = 0;
+	unsigned int mmc_push_pull_divisor = 0;
 
 	mmc_pclk = host->mmc_input_clk;
 	if (mmc_req_freq && mmc_pclk > (2 * mmc_req_freq))
@@ -1105,7 +1106,7 @@ static int mmc_davinci_cpufreq_transition(struct notifier_block *nb,
 				     unsigned long val, void *data)
 {
 	struct mmc_davinci_host *host;
-	unsigned int mmc_pclk;
+	unsigned long mmc_pclk;
 	struct mmc_host *mmc;
 	unsigned long flags;
 
-- 
1.8.1.2


      parent reply	other threads:[~2014-01-22 11:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-22 11:46 [RFC PATCH 0/3] ARM: mmc: davinci: Small fixes on host davinci driver Michael Trimarchi
2014-01-22 11:46 ` [RFC PATCH 1/3] ARM: mmc: davinci: remove unused variable mmc_pclk and fix opendrain clock calculation Michael Trimarchi
2014-01-22 11:46 ` [RFC PATCH 2/3] ARM: mmc: davinci: Remove cast to the same type Michael Trimarchi
2014-01-22 11:46 ` Michael Trimarchi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1390391165-27906-4-git-send-email-michael@amarulasolutions.com \
    --to=michael@amarulasolutions.com \
    --cc=cjb@laptop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=nsekhar@ti.com \
    --cc=prakash.pm@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®