chiark / gitweb /
terminal: modeset: forward DEVICE_CHANGE events into grdev
[elogind.git] / src / libsystemd-terminal / sysview.c
index 23d564d6a0407417c57ed0d4a0ea329cefd98911..161ea117a4fbe88308e06186f557fdddbacba2ca 100644 (file)
@@ -895,7 +895,7 @@ static int context_ud_hotplug(sysview_context *c, struct udev_device *d) {
 
                 if (streq(subsystem, "input") && startswith(sysname, "event") && safe_atou(sysname + 5, &t) >= 0)
                         type = SYSVIEW_DEVICE_EVDEV;
-                else if (streq(subsystem, "drm") && startswith(sysname, "card") && safe_atou(sysname + 4, &t) >= 0)
+                else if (streq(subsystem, "drm") && startswith(sysname, "card"))
                         type = SYSVIEW_DEVICE_DRM;
                 else
                         type = (unsigned)-1;