cxgb4vf: recover from failure in cxgb4vf_open()
[firefly-linux-kernel-4.4.55.git] / drivers / video / mx3fb.c
index 9f7c9015de3b0b7e38829e3d0475a6f01191c05f..cb013919e9ce5fbfd29bb3f27521f62c99e394e1 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/clk.h>
 #include <linux/mutex.h>
 
+#include <mach/dma.h>
 #include <mach/hardware.h>
 #include <mach/ipu.h>
 #include <mach/mx3fb.h>
@@ -1420,6 +1421,9 @@ static bool chan_filter(struct dma_chan *chan, void *arg)
        struct device *dev;
        struct mx3fb_platform_data *mx3fb_pdata;
 
+       if (!imx_dma_is_ipu(chan))
+               return false;
+
        if (!rq)
                return false;