diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-12-29 12:38:44 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-30 05:02:35 -0500 |
commit | 61ea3aa5bf309333c6655ccef825b4a765bff219 (patch) | |
tree | dad4e00a53d5837532c3dc03c9279ddde721f356 /drivers/media | |
parent | 657f2271050beabe725ba101c1d840f51a41f33d (diff) |
[media] timblogiw: fix compile warning
Fix 64-bit compile warning:
drivers/media/video/timblogiw.c: In function ‘timblogiw_dma_filter_fn’:
drivers/media/video/timblogiw.c:151: warning: cast from pointer to integer of different size
drivers/media/video/timblogiw.c: In function ‘timblogiw_open’:
drivers/media/video/timblogiw.c:670: warning: cast to pointer from integer of different size
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Richard Rojförs <richard.rojfors@pelagicore.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/timblogiw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/timblogiw.c b/drivers/media/video/timblogiw.c index c2fcab465dfc..fc611ebeb82c 100644 --- a/drivers/media/video/timblogiw.c +++ b/drivers/media/video/timblogiw.c | |||
@@ -148,7 +148,7 @@ static void timblogiw_dma_cb(void *data) | |||
148 | 148 | ||
149 | static bool timblogiw_dma_filter_fn(struct dma_chan *chan, void *filter_param) | 149 | static bool timblogiw_dma_filter_fn(struct dma_chan *chan, void *filter_param) |
150 | { | 150 | { |
151 | return chan->chan_id == (int)filter_param; | 151 | return chan->chan_id == (uintptr_t)filter_param; |
152 | } | 152 | } |
153 | 153 | ||
154 | /* IOCTL functions */ | 154 | /* IOCTL functions */ |
@@ -668,7 +668,7 @@ static int timblogiw_open(struct file *file) | |||
668 | 668 | ||
669 | /* find the DMA channel */ | 669 | /* find the DMA channel */ |
670 | fh->chan = dma_request_channel(mask, timblogiw_dma_filter_fn, | 670 | fh->chan = dma_request_channel(mask, timblogiw_dma_filter_fn, |
671 | (void *)lw->pdata.dma_channel); | 671 | (void *)(uintptr_t)lw->pdata.dma_channel); |
672 | if (!fh->chan) { | 672 | if (!fh->chan) { |
673 | dev_err(&vdev->dev, "Failed to get DMA channel\n"); | 673 | dev_err(&vdev->dev, "Failed to get DMA channel\n"); |
674 | kfree(fh); | 674 | kfree(fh); |