[PATCH] config: don't require x11_driver from udev.

Peter Hutterer peter.hutterer at who-t.net
Tue Dec 22 22:06:33 PST 2009


The driver may be set in the InputClass options.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
We have extra checks in the NIDR for missing drivers lateron anyway, so
arguably this isn't needed.

 config/udev.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/config/udev.c b/config/udev.c
index 90e8e0b..758526f 100644
--- a/config/udev.c
+++ b/config/udev.c
@@ -53,8 +53,6 @@ device_added(struct udev_device *udev_device)
     struct udev_device *parent;
     int rc;
 
-    driver = udev_device_get_property_value(udev_device, "x11_driver");
-
     path = udev_device_get_devnode(udev_device);
 
     syspath = udev_device_get_syspath(udev_device);
@@ -65,7 +63,7 @@ device_added(struct udev_device *udev_device)
     if (!name)
         name = "(unnamed)";
 
-    if (!driver || !path || !syspath)
+    if (!path || !syspath)
         return;
     options = xcalloc(sizeof(*options), 1);
     if (!options)
-- 
1.6.5.2



More information about the xorg-devel mailing list