diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ks8842.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ks8842.c b/drivers/net/ks8842.c index 3fe38c787f29..928b2b83cef5 100644 --- a/drivers/net/ks8842.c +++ b/drivers/net/ks8842.c | |||
@@ -919,7 +919,7 @@ static void ks8842_dealloc_dma_bufs(struct ks8842_adapter *adapter) | |||
919 | 919 | ||
920 | static bool ks8842_dma_filter_fn(struct dma_chan *chan, void *filter_param) | 920 | static bool ks8842_dma_filter_fn(struct dma_chan *chan, void *filter_param) |
921 | { | 921 | { |
922 | return chan->chan_id == (int)filter_param; | 922 | return chan->chan_id == (long)filter_param; |
923 | } | 923 | } |
924 | 924 | ||
925 | static int ks8842_alloc_dma_bufs(struct net_device *netdev) | 925 | static int ks8842_alloc_dma_bufs(struct net_device *netdev) |
@@ -938,7 +938,7 @@ static int ks8842_alloc_dma_bufs(struct net_device *netdev) | |||
938 | sg_init_table(&tx_ctl->sg, 1); | 938 | sg_init_table(&tx_ctl->sg, 1); |
939 | 939 | ||
940 | tx_ctl->chan = dma_request_channel(mask, ks8842_dma_filter_fn, | 940 | tx_ctl->chan = dma_request_channel(mask, ks8842_dma_filter_fn, |
941 | (void *)tx_ctl->channel); | 941 | (void *)(long)tx_ctl->channel); |
942 | if (!tx_ctl->chan) { | 942 | if (!tx_ctl->chan) { |
943 | err = -ENODEV; | 943 | err = -ENODEV; |
944 | goto err; | 944 | goto err; |
@@ -961,7 +961,7 @@ static int ks8842_alloc_dma_bufs(struct net_device *netdev) | |||
961 | } | 961 | } |
962 | 962 | ||
963 | rx_ctl->chan = dma_request_channel(mask, ks8842_dma_filter_fn, | 963 | rx_ctl->chan = dma_request_channel(mask, ks8842_dma_filter_fn, |
964 | (void *)rx_ctl->channel); | 964 | (void *)(long)rx_ctl->channel); |
965 | if (!rx_ctl->chan) { | 965 | if (!rx_ctl->chan) { |
966 | err = -ENODEV; | 966 | err = -ENODEV; |
967 | goto err; | 967 | goto err; |