summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-08-14 08:39:22 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-08-14 08:39:22 -0700
commitee0d281a3e5fe611bdda23db18fa0e5684ee43ed (patch)
tree840273635401bd1e0d11a15ef1fab2fe1ae2a9d4
parente8e73b01399e8d3c3fc6b94d26ef9cc49b33dda8 (diff)
parentc95c15b1923611f48c44c18ad158e57b9d915fdf (diff)
downloadsystem_core-ee0d281a3e5fe611bdda23db18fa0e5684ee43ed.zip
system_core-ee0d281a3e5fe611bdda23db18fa0e5684ee43ed.tar.gz
system_core-ee0d281a3e5fe611bdda23db18fa0e5684ee43ed.tar.bz2
am c95c15b1: Merge "Char device /dev/dri/card0 was not created during startup."
* commit 'c95c15b1923611f48c44c18ad158e57b9d915fdf': Char device /dev/dri/card0 was not created during startup.
-rw-r--r--init/devices.c3
-rw-r--r--rootdir/ueventd.rc3
2 files changed, 6 insertions, 0 deletions
diff --git a/init/devices.c b/init/devices.c
index 597f958..e43dbaf 100644
--- a/init/devices.c
+++ b/init/devices.c
@@ -599,6 +599,9 @@ static void handle_generic_device_event(struct uevent *uevent)
} else if (!strncmp(uevent->subsystem, "graphics", 8)) {
base = "/dev/graphics/";
make_dir(base, 0755);
+ } else if (!strncmp(uevent->subsystem, "drm", 3)) {
+ base = "/dev/dri/";
+ make_dir(base, 0755);
} else if (!strncmp(uevent->subsystem, "oncrpc", 6)) {
base = "/dev/oncrpc/";
make_dir(base, 0755);
diff --git a/rootdir/ueventd.rc b/rootdir/ueventd.rc
index 07624c4..c1fca00 100644
--- a/rootdir/ueventd.rc
+++ b/rootdir/ueventd.rc
@@ -18,6 +18,9 @@
# gpu driver for adreno200 is globally accessible
/dev/kgsl 0666 root root
+# kms driver for drm based gpu
+/dev/dri/* 0666 root graphics
+
# these should not be world writable
/dev/diag 0660 radio radio
/dev/diag_arm9 0660 radio radio