From 1c77bdf2d1094ec8f00bd3e61fd585238a8cef32 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 8 Oct 2014 09:31:37 -0400 Subject: 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 --- src/lib/ecore_drm/ecore_drm_device.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/ecore_drm/ecore_drm_device.c') 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) goto cont; devparent = eeze_udev_syspath_get_parent_filtered(device, "pci", NULL); + if (!devparent) + { + devparent = + eeze_udev_syspath_get_parent_filtered(device, "platform", NULL); + } + if (devparent) { const char *id; -- cgit v1.2.1