diff options
Diffstat (limited to 'system/core/0001-init-Add-support-for-DRM-KMS-devices.patch')
-rw-r--r-- | system/core/0001-init-Add-support-for-DRM-KMS-devices.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/system/core/0001-init-Add-support-for-DRM-KMS-devices.patch b/system/core/0001-init-Add-support-for-DRM-KMS-devices.patch new file mode 100644 index 0000000..89520bb --- /dev/null +++ b/system/core/0001-init-Add-support-for-DRM-KMS-devices.patch @@ -0,0 +1,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 + |