[PATCH 4/4] MMC: S3C24XX: Fix use of msecs where jiffies are needed

Cesar Eduardo Barros cesarb at cesarb.net
Sun Aug 10 01:42:08 CEST 2008

From: Ben Dooks <ben-linux at fluff.org>

mmc_detect_change() takes jiffies, not msecs. Convert the
previous value of msecs into jiffies before calling.

Signed-off-by: Ben Dooks <ben-linux at fluff.org>
Signed-off-by: Pierre Ossman <drzeus at drzeus.cx>
(cherry picked from commit 2de5f79d4dfcb1be16f0b873bc77d6ec74b0426d)
 drivers/mmc/host/s3cmci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c
index ffba0f9..283b90c 100644
--- a/drivers/mmc/host/s3cmci.c
+++ b/drivers/mmc/host/s3cmci.c
@@ -598,7 +598,7 @@ static irqreturn_t s3cmci_irq_cd(int irq, void *dev_id)
 	dbg(host, dbg_irq, "card detect\n");
-	mmc_detect_change(host->mmc, 500);
+	mmc_detect_change(host->mmc, msecs_to_jiffies(500));
 	return IRQ_HANDLED;

More information about the openmoko-kernel mailing list