summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivas Kandagatla2014-06-02 11:08:39 +0200
committerUlf Hansson2014-07-09 11:25:52 +0200
commitc4a357691693776f5f941f29bdce704b29b156ba (patch)
treebd74f5a7d26151f37ca50c404b0e84394bd7d124
parentLinux 3.16-rc4 (diff)
downloadkernel-qcow2-linux-c4a357691693776f5f941f29bdce704b29b156ba.tar.gz
kernel-qcow2-linux-c4a357691693776f5f941f29bdce704b29b156ba.tar.xz
kernel-qcow2-linux-c4a357691693776f5f941f29bdce704b29b156ba.zip
mmc: mmci: use NSEC_PER_SEC macro
This patch replaces a constant used in calculating timeout with a proper macro. This is make code more readable. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/mmci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c
index 7ad463e9741c..c67120bf2e93 100644
--- a/drivers/mmc/host/mmci.c
+++ b/drivers/mmc/host/mmci.c
@@ -719,7 +719,7 @@ static void mmci_start_data(struct mmci_host *host, struct mmc_data *data)
data->bytes_xfered = 0;
clks = (unsigned long long)data->timeout_ns * host->cclk;
- do_div(clks, 1000000000UL);
+ do_div(clks, NSEC_PER_SEC);
timeout = data->timeout_clks + (unsigned int)clks;