1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

udev: don't reference parent sysfs node directly

udev warns direct reference to parent sysfs, which is not necessary and
may break future kernel. Actually udev will handle parent nodes automatically
for ATTRS key.

This fixes [BUGID #113]

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
Kevin Tian
2010-09-03 09:47:05 +08:00
committed by Richard Purdie
parent 5c1638ced3
commit 7e80c6e446
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -28,6 +28,5 @@ KERNEL=="rtc0", SYMLINK+="rtc"
ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}"
# Create a symlink to any touchscreen input device
# Need to use ../ so the eventX can find the parent inputX modalias which is a directory above
SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{../modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0"
SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0"
+1 -1
View File
@@ -1,3 +1,3 @@
include udev-new.inc
PR = "r2"
PR = "r3"