diff options
author | Vipul Kumar <vipul.kumar@xilinx.com> | 2018-05-03 12:20:54 +0530 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2018-05-11 09:38:27 +0200 |
commit | 36332b6e4b122e0bdb43eb992533bdd911b6c030 (patch) | |
tree | 5feaf9ffe4da679aceb8a3b828e3c28ae90917a8 /drivers/mmc/sdhci.c | |
parent | 1d6c54ecb39b8591a98f02f9b47af225ff07cd0b (diff) | |
download | u-boot-36332b6e4b122e0bdb43eb992533bdd911b6c030.tar.gz u-boot-36332b6e4b122e0bdb43eb992533bdd911b6c030.tar.xz u-boot-36332b6e4b122e0bdb43eb992533bdd911b6c030.zip |
mmc: Changed the datatype of the variable to handle 64-bit arch
This patch changed the datatype of variable "start" from uint to ulong
to work properly on 64-bit machines as well. Also the return type of
get_timer() function is ulong.
Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/mmc/sdhci.c')
-rw-r--r-- | drivers/mmc/sdhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 758850fc3b..c2ae3e327b 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -151,7 +151,7 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd, u32 mask, flags, mode; unsigned int time = 0, start_addr = 0; int mmc_dev = mmc_get_blk_desc(mmc)->devnum; - unsigned start = get_timer(0); + ulong start = get_timer(0); /* Timeout unit - ms */ static unsigned int cmd_timeout = SDHCI_CMD_DEFAULT_TIMEOUT; |