diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-01-06 13:38:17 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-01-06 13:38:17 -0500 |
commit | 209b84a88fe81341b4d8d465acc4a67cb7c3feb3 (patch) | |
tree | 134632ed8c914f0ee497e7a22bc616d84e068119 /net | |
parent | 74465b4ff9ac1da503025c0a0042e023bfa6505c (diff) |
dmaengine: replace dma_async_client_register with dmaengine_get
Now that clients no longer need to be notified of channel arrival
dma_async_client_register can simply increment the dmaengine_ref_count.
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index bbb07dbe1740..7596fc9403c8 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -4894,8 +4894,7 @@ static int __init netdev_dma_register(void) | |||
4894 | } | 4894 | } |
4895 | spin_lock_init(&net_dma.lock); | 4895 | spin_lock_init(&net_dma.lock); |
4896 | dma_cap_set(DMA_MEMCPY, net_dma.client.cap_mask); | 4896 | dma_cap_set(DMA_MEMCPY, net_dma.client.cap_mask); |
4897 | dma_async_client_register(&net_dma.client); | 4897 | dmaengine_get(); |
4898 | dma_async_client_chan_request(&net_dma.client); | ||
4899 | return 0; | 4898 | return 0; |
4900 | } | 4899 | } |
4901 | 4900 | ||