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