Merge commit 'Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux'
[deliverable/linux.git] / include / linux / platform_data / dma-imx.h
index f6d30cc1cb77eeb4681f9bd83f7471973ec17581..beac6b8b6a7b3846cf3925cab343da187fc686e1 100644 (file)
@@ -60,10 +60,8 @@ static inline int imx_dma_is_ipu(struct dma_chan *chan)
 
 static inline int imx_dma_is_general_purpose(struct dma_chan *chan)
 {
-       return strstr(dev_name(chan->device->dev), "sdma") ||
-               !strcmp(dev_name(chan->device->dev), "imx1-dma") ||
-               !strcmp(dev_name(chan->device->dev), "imx21-dma") ||
-               !strcmp(dev_name(chan->device->dev), "imx27-dma");
+       return !strcmp(chan->device->dev->driver->name, "imx-sdma") ||
+               !strcmp(chan->device->dev->driver->name, "imx-dma");
 }
 
 #endif
This page took 0.03022 seconds and 5 git commands to generate.