summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-10-08 09:31:37 -0400
committerChris Michael <cp.michael@samsung.com>2014-10-08 09:31:37 -0400
commit1c77bdf2d1094ec8f00bd3e61fd585238a8cef32 (patch)
treed2ed365845ff6713f5c6a5c701963172544d3c0c /src/lib
parent6480b8b75d4465f8f962c7044f416a49374a39dd (diff)
ecore-drm: Fix failure of finding drm device on ARM platforms.
Summary: On some ARM platforms we were failing to find the drm device card. This was due to those ARM platforms using SUBSYSTEM="platform" as a udev attribute instead of "pci". This fixes that issue so that those devices are found again. Thanks to shiin for the report :) @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ecore_drm/ecore_drm_device.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_device.c b/src/lib/ecore_drm/ecore_drm_device.c
index 2f7495d78d..7e43ad21a0 100644
--- a/src/lib/ecore_drm/ecore_drm_device.c
+++ b/src/lib/ecore_drm/ecore_drm_device.c
@@ -185,6 +185,12 @@ ecore_drm_device_find(const char *name, const char *seat)
185 goto cont; 185 goto cont;
186 186
187 devparent = eeze_udev_syspath_get_parent_filtered(device, "pci", NULL); 187 devparent = eeze_udev_syspath_get_parent_filtered(device, "pci", NULL);
188 if (!devparent)
189 {
190 devparent =
191 eeze_udev_syspath_get_parent_filtered(device, "platform", NULL);
192 }
193
188 if (devparent) 194 if (devparent)
189 { 195 {
190 const char *id; 196 const char *id;