From 39e5e982242cd2b611a9dfc1e9b63f857d52da61 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 7 Dec 2010 14:26:09 +1000 Subject: drm: don't do the create the node ourselves if we have udev. this can remove nodes it shouldn't, let udev run the show. this is needed for reliably GPU switch. Signed-off-by: Dave Airlie --- xf86drm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xf86drm.c b/xf86drm.c index 896b9ba0..799fcddf 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -370,6 +370,7 @@ wait_for_udev: if (fd >= 0) return fd; +#if !defined(UDEV) /* Check if the device node is not what we expect it to be, and recreate it * and try again if so. */ @@ -391,6 +392,7 @@ wait_for_udev: drmMsg("drmOpenDevice: Open failed\n"); remove(buf); +#endif return -errno; } -- cgit v1.2.3