diff options
Diffstat (limited to 'extras/input_id/input_id.c')
-rw-r--r-- | extras/input_id/input_id.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/input_id/input_id.c b/extras/input_id/input_id.c index 8024524681..48097aa977 100644 --- a/extras/input_id/input_id.c +++ b/extras/input_id/input_id.c @@ -144,7 +144,7 @@ int main (int argc, char** argv) /* walk up the parental chain until we find the real input device; the * argument is very likely a subdevice of this, like eventN */ while (dev != NULL && udev_device_get_sysattr_value(dev, "capabilities/key") == NULL) - dev = udev_device_get_parent(dev); + dev = udev_device_get_parent_with_subsystem_devtype(dev, "input", NULL); /* not an "input" class device */ if (dev == NULL) |