config-udev: Don't try to add drm devices twice
Before this commit we were trying to add most drm devices twice, once from xf86platformProbe() and once from config_udev_init(). This results in somewhat confusing messages in Xorg.log, ie: (II) xfree86: Adding drm device (/dev/dri/card0) Later followed by: (II) config/udev: Adding drm device (/dev/dri/card0) By filtering out duplicate drm devices we avoid these confusing messages. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
687afa3f64
commit
d9a4059d40
|
@ -112,6 +112,10 @@ device_added(struct udev_device *udev_device)
|
||||||
if (strncmp(sysname, "card", 4) != 0)
|
if (strncmp(sysname, "card", 4) != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/* Check for devices already added through xf86platformProbe() */
|
||||||
|
if (xf86_find_platform_device_by_devnum(major(devnum), minor(devnum)))
|
||||||
|
return;
|
||||||
|
|
||||||
LogMessage(X_INFO, "config/udev: Adding drm device (%s)\n", path);
|
LogMessage(X_INFO, "config/udev: Adding drm device (%s)\n", path);
|
||||||
|
|
||||||
config_udev_odev_setup_attribs(path, syspath, major(devnum),
|
config_udev_odev_setup_attribs(path, syspath, major(devnum),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user