Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 538f4696 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Chris Ball
Browse files

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: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent e5a233cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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__,