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>
This commit is contained in:
Tony Jones 2007-09-25 02:03:03 +02:00 committed by Greg Kroah-Hartman
parent 62ca879256
commit 891f78ea83
2 changed files with 24 additions and 22 deletions

View file

@ -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);