diff options
author | Tony Jones <tonyj@suse.de> | 2007-09-25 02:03:03 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 20:40:05 -0800 |
commit | 891f78ea833edd4a1e524e15bfe297a7a84d81a0 (patch) | |
tree | 533f12df743c4adc6d2b40d048ffb7d16c93e591 /include | |
parent | 62ca8792560e5bd7dc09f54ed3523a7864f416c7 (diff) | |
download | talos-op-linux-891f78ea833edd4a1e524e15bfe297a7a84d81a0.tar.gz talos-op-linux-891f78ea833edd4a1e524e15bfe297a7a84d81a0.zip |
DMA: Convert from class_device to device for DMA engine
Signed-off-by: Tony Jones <tonyj@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Cc: Shannon Nelson <shannon.nelson@intel.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dmaengine.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index a3b6035b6c86..55c9a6952f44 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h @@ -132,7 +132,7 @@ struct dma_chan { /* sysfs */ int chan_id; - struct class_device class_dev; + struct device dev; struct kref refcount; int slow_ref; @@ -142,6 +142,7 @@ struct dma_chan { struct dma_chan_percpu *local; }; +#define to_dma_chan(p) container_of(p, struct dma_chan, dev) void dma_chan_cleanup(struct kref *kref); |