V4L/DVB (6384): Replace TDA9887_SET_CONFIG by TUNER_SET_CONFIG
[pandora-kernel.git] / include / linux / dmaengine.h
index a3b6035..55c9a69 100644 (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);