diff mbox

media: fix casting issues in timberdale logiwin

Message ID 20101123203951.GA29332@redhat.com (mailing list archive)
State Rejected
Headers show

Commit Message

Jarod Wilson Nov. 23, 2010, 8:39 p.m. UTC
None
diff mbox

Patch

different sizes w/current code, this silences them.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
---
 drivers/media/video/timblogiw.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/media/video/timblogiw.c b/drivers/media/video/timblogiw.c
index 48989e5..4da3625 100644
--- a/drivers/media/video/timblogiw.c
+++ b/drivers/media/video/timblogiw.c
@@ -148,7 +148,9 @@  static void timblogiw_dma_cb(void *data)
 
 static bool timblogiw_dma_filter_fn(struct dma_chan *chan, void *filter_param)
 {
-	return chan->chan_id == (int)filter_param;
+	int chan_id = *(int *)filter_param;
+
+	return chan->chan_id == chan_id;
 }
 
 /* IOCTL functions */
@@ -670,7 +672,7 @@  static int timblogiw_open(struct file *file)
 
 	/* find the DMA channel */
 	fh->chan = dma_request_channel(mask, timblogiw_dma_filter_fn,
-			(void *)lw->pdata.dma_channel);
+			(void *)(unsigned long)lw->pdata.dma_channel);
 	if (!fh->chan) {
 		dev_err(&vdev->dev, "Failed to get DMA channel\n");
 		kfree(fh);