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 authored and Richard Purdie committed 2010-09-03 08:58:25 +01:00
1 parent 5c1638ced3
commit 7e80c6e446
2 files changed
+2 -3

No files matched your search

+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"