diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2013-10-30 12:34:52 +0100 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-01-13 12:48:26 -0500 |
commit | 538f4696bb75c7da4c7c88a7ce011b51c5fb260c (patch) | |
tree | 73586bc0cf1ea257e1e1a17a4eb123e5b6bc1534 /drivers/mmc/host | |
parent | e5a233cb647d749de2f188477c9a54b94d90477f (diff) | |
download | linux-538f4696bb75c7da4c7c88a7ce011b51c5fb260c.tar.gz linux-538f4696bb75c7da4c7c88a7ce011b51c5fb260c.tar.bz2 linux-538f4696bb75c7da4c7c88a7ce011b51c5fb260c.zip |
mmc: sh_mmcif: Fix compilation warning on 64-bit platforms
Casting an integer to a void * generates a "cast to pointer from integer
of different size" warning. Cast the integer to an unsigned long first
to fix it.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r-- | drivers/mmc/host/sh_mmcif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index bebf2fe38ea0..54730f4aac87 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c @@ -403,7 +403,7 @@ sh_mmcif_request_dma_one(struct sh_mmcif_host *host, slave_id = 0; chan = dma_request_slave_channel_compat(mask, shdma_chan_filter, - (void *)slave_id, &host->pd->dev, + (void *)(unsigned long)slave_id, &host->pd->dev, direction == DMA_MEM_TO_DEV ? "tx" : "rx"); dev_dbg(&host->pd->dev, "%s: %s: got channel %p\n", __func__, |