diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2014-06-02 05:08:39 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-07-09 05:25:52 -0400 |
commit | c4a357691693776f5f941f29bdce704b29b156ba (patch) | |
tree | bd74f5a7d26151f37ca50c404b0e84394bd7d124 | |
parent | cd3de83f147601356395b57a8673e9c5ff1e59d1 (diff) |
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.c | 2 |
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) | |||
719 | data->bytes_xfered = 0; | 719 | data->bytes_xfered = 0; |
720 | 720 | ||
721 | clks = (unsigned long long)data->timeout_ns * host->cclk; | 721 | clks = (unsigned long long)data->timeout_ns * host->cclk; |
722 | do_div(clks, 1000000000UL); | 722 | do_div(clks, NSEC_PER_SEC); |
723 | 723 | ||
724 | timeout = data->timeout_clks + (unsigned int)clks; | 724 | timeout = data->timeout_clks + (unsigned int)clks; |
725 | 725 | ||