]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/dmaengine.h
USB: use GFP_NOIO in reset path
[linux-2.6-omap-h63xx.git] / include / linux / dmaengine.h
index a3b6035b6c860c506c7c5c2d923cdc8444901ad6..55c9a6952f447c6284a5b75b88ac9696ddc89214 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);