blob: 89520bbcb9ca027cb640fbbba94b166e77a3d1e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
From fbc8ecd836449f9734f6088a86b247d302d67929 Mon Sep 17 00:00:00 2001
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Date: Sat, 15 Sep 2012 03:54:06 +0200
Subject: [PATCH 1/2] init: Add support for DRM/KMS devices
Create the associated devices nodes in /dev/dri/.
Change-Id: Ib53681bb2219dc0c349837ecc9797677d30f801e
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
init/devices.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/init/devices.c b/init/devices.c
index 3b4d369..970a2c2 100644
--- a/init/devices.c
+++ b/init/devices.c
@@ -595,6 +595,9 @@ static void handle_generic_device_event(struct uevent *uevent)
/* ignore other USB events */
return;
}
+ } else if (!strncmp(uevent->subsystem, "drm", 3)) {
+ base = "/dev/dri/";
+ make_dir(base, 0755);
} else if (!strncmp(uevent->subsystem, "graphics", 8)) {
base = "/dev/graphics/";
make_dir(base, 0755);
--
1.7.8.6
|