summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorKevin Tian <kevin.tian@intel.com>2010-09-03 09:47:05 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-03 08:58:25 +0100
commit7e80c6e446e18437d5a5953d459276b4f799513c (patch)
treee31d3fc5cb236f0a0e5a0086b16aa9b6fb752afb /meta/recipes-core
parent5c1638ced33daa823f1b74a286fcae23818a74c2 (diff)
downloadpoky-7e80c6e446e18437d5a5953d459276b4f799513c.tar.gz
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>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/udev/udev-158/local.rules3
-rw-r--r--meta/recipes-core/udev/udev_158.bb2
2 files changed, 2 insertions, 3 deletions
diff --git a/meta/recipes-core/udev/udev-158/local.rules b/meta/recipes-core/udev/udev-158/local.rules
index dab319b431..317dd9f289 100644
--- a/meta/recipes-core/udev/udev-158/local.rules
+++ b/meta/recipes-core/udev/udev-158/local.rules
@@ -28,6 +28,5 @@ KERNEL=="rtc0", SYMLINK+="rtc"
28ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}" 28ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}"
29 29
30# Create a symlink to any touchscreen input device 30# Create a symlink to any touchscreen input device
31# Need to use ../ so the eventX can find the parent inputX modalias which is a directory above 31SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0"
32SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{../modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0"
33 32
diff --git a/meta/recipes-core/udev/udev_158.bb b/meta/recipes-core/udev/udev_158.bb
index daf8d37e5f..a9529d9d86 100644
--- a/meta/recipes-core/udev/udev_158.bb
+++ b/meta/recipes-core/udev/udev_158.bb
@@ -1,3 +1,3 @@
1include udev-new.inc 1include udev-new.inc
2 2
3PR = "r2" 3PR = "r3"