Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203781
b: refs/heads/master
c: bd28063
h: refs/heads/master
i:
  203779: d8a4f07
v: v3
  • Loading branch information
David S. Miller committed Jul 28, 2010
1 parent 043eb9c commit 5d0a26b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba01877f56c3244b21746d3f1537f7647ed97984
refs/heads/master: bd280635825a2b3981da63a54e38de97e87231b3
6 changes: 3 additions & 3 deletions trunk/drivers/net/ks8842.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ static void ks8842_dealloc_dma_bufs(struct ks8842_adapter *adapter)

static bool ks8842_dma_filter_fn(struct dma_chan *chan, void *filter_param)
{
return chan->chan_id == (int)filter_param;
return chan->chan_id == (long)filter_param;
}

static int ks8842_alloc_dma_bufs(struct net_device *netdev)
Expand All @@ -938,7 +938,7 @@ static int ks8842_alloc_dma_bufs(struct net_device *netdev)
sg_init_table(&tx_ctl->sg, 1);

tx_ctl->chan = dma_request_channel(mask, ks8842_dma_filter_fn,
(void *)tx_ctl->channel);
(void *)(long)tx_ctl->channel);
if (!tx_ctl->chan) {
err = -ENODEV;
goto err;
Expand All @@ -961,7 +961,7 @@ static int ks8842_alloc_dma_bufs(struct net_device *netdev)
}

rx_ctl->chan = dma_request_channel(mask, ks8842_dma_filter_fn,
(void *)rx_ctl->channel);
(void *)(long)rx_ctl->channel);
if (!rx_ctl->chan) {
err = -ENODEV;
goto err;
Expand Down

0 comments on commit 5d0a26b

Please sign in to comment.