Merge tag 'v3.17-rc4' into sched/core, to prevent conflicts with upcoming patches...
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / drm / drm_lock.c
index 786401cd5f606b80548ab26a4b1f40eecd1a50c6..e26b59e385ff151116f5af63bf47626c2839f8eb 100644 (file)
@@ -35,6 +35,7 @@
 
 #include <linux/export.h>
 #include <drm/drmP.h>
+#include "drm_legacy.h"
 
 static int drm_notifier(void *priv);
 
@@ -111,7 +112,7 @@ int drm_lock(struct drm_device *dev, void *data, struct drm_file *file_priv)
        /* don't set the block all signals on the master process for now 
         * really probably not the correct answer but lets us debug xkb
         * xserver for now */
-       if (!drm_is_master(file_priv)) {
+       if (!file_priv->is_master) {
                sigemptyset(&dev->sigmask);
                sigaddset(&dev->sigmask, SIGSTOP);
                sigaddset(&dev->sigmask, SIGTSTP);