[PATCH] udev: Don't filter subsystem "input"

Thomas Jaeger ThJaeger at gmail.com
Mon Jan 4 12:00:49 PST 2010


This allows serial wacom devices to work, whose subsystem is "tty".
---
 config/udev.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/config/udev.c b/config/udev.c
index 3ef0d7f..d73bef5 100644
--- a/config/udev.c
+++ b/config/udev.c
@@ -204,7 +204,6 @@ config_udev_init(void)
     struct udev *udev;
     struct udev_enumerate *enumerate;
     struct udev_list_entry *devices, *device;
-    int rc;
 
     udev = udev_new();
     if (!udev)
@@ -212,10 +211,6 @@ config_udev_init(void)
     udev_monitor = udev_monitor_new_from_netlink(udev, "udev");
     if (!udev_monitor)
         return 0;
-    rc = udev_monitor_filter_add_match_subsystem_devtype(udev_monitor,
-                                                         "input", NULL);
-    if (rc < 0)
-        return 0;
 
     if (udev_monitor_enable_receiving(udev_monitor)) {
         ErrorF("config/udev: failed to bind the udev monitor\n");
@@ -225,7 +220,6 @@ config_udev_init(void)
     enumerate = udev_enumerate_new(udev);
     if (!enumerate)
         return 0;
-    udev_enumerate_add_match_subsystem(enumerate, "input");
     udev_enumerate_scan_devices(enumerate);
     devices = udev_enumerate_get_list_entry(enumerate);
     udev_list_entry_foreach(device, devices) {
-- 
1.6.3.3


--------------000009040209050503060105--


More information about the xorg-devel mailing list