diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-01-07 19:42:35 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-02-24 14:36:51 -0500 |
commit | fd63ac761a2385a69859867b2d51b716d91fcc36 (patch) | |
tree | fd337ec8c5182547c24ad1ab43027cd68ada242b /drivers/mmc | |
parent | e7be434acc50ec436039dbc9840fcf1f670a1ef9 (diff) |
mmc: mxs-mmc: Fix warning due to incorrect type
Fixes the following warning when building with W=1 option:
drivers/mmc/host/mxs-mmc.c: In function 'mxs_mmc_adtc':
drivers/mmc/host/mxs-mmc.c:401:2: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
The warning happens because 'i' is used in 'for_each_sg(sgl, sg, sg_len, i)' and should be made unsigned.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/mxs-mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c index b9a9ca01014f..493cd9eb8aa8 100644 --- a/drivers/mmc/host/mxs-mmc.c +++ b/drivers/mmc/host/mxs-mmc.c | |||
@@ -354,7 +354,7 @@ static void mxs_mmc_adtc(struct mxs_mmc_host *host) | |||
354 | struct dma_async_tx_descriptor *desc; | 354 | struct dma_async_tx_descriptor *desc; |
355 | struct scatterlist *sgl = data->sg, *sg; | 355 | struct scatterlist *sgl = data->sg, *sg; |
356 | unsigned int sg_len = data->sg_len; | 356 | unsigned int sg_len = data->sg_len; |
357 | int i; | 357 | unsigned int i; |
358 | 358 | ||
359 | unsigned short dma_data_dir, timeout; | 359 | unsigned short dma_data_dir, timeout; |
360 | enum dma_transfer_direction slave_dirn; | 360 | enum dma_transfer_direction slave_dirn; |