Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755493AbaAVLq0 (ORCPT ); Wed, 22 Jan 2014 06:46:26 -0500 Received: from mail-wi0-f180.google.com ([209.85.212.180]:37925 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755380AbaAVLqP (ORCPT ); Wed, 22 Jan 2014 06:46:15 -0500 From: Michael Trimarchi To: linux-mmc@vger.kernel.org Cc: Chris Ball , linux-kernel@vger.kernel.org, Sekhar Nori , Manjunathappa Prakash Subject: [RFC PATCH 3/3] ARM: mmc: davinci: clock rate is an unsigned long Date: Wed, 22 Jan 2014 12:46:05 +0100 Message-Id: <1390391165-27906-4-git-send-email-michael@amarulasolutions.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1390391165-27906-1-git-send-email-michael@amarulasolutions.com> References: <1390391165-27906-1-git-send-email-michael@amarulasolutions.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Michael Trimarchi --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/