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 <airlied@redhat.com>
main
Dave Airlie 2010-12-07 14:26:09 +10:00
parent af3d282afb
commit 39e5e98224
1 changed files with 2 additions and 0 deletions

View File

@ -370,6 +370,7 @@ wait_for_udev:
if (fd >= 0) if (fd >= 0)
return fd; return fd;
#if !defined(UDEV)
/* Check if the device node is not what we expect it to be, and recreate it /* Check if the device node is not what we expect it to be, and recreate it
* and try again if so. * and try again if so.
*/ */
@ -391,6 +392,7 @@ wait_for_udev:
drmMsg("drmOpenDevice: Open failed\n"); drmMsg("drmOpenDevice: Open failed\n");
remove(buf); remove(buf);
#endif
return -errno; return -errno;
} }