devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1c77bdf2d1094ec8f00bd3e61fd585238a8cef32

commit 1c77bdf2d1094ec8f00bd3e61fd585238a8cef32
Author: Chris Michael <[email protected]>
Date:   Wed Oct 8 09:31:37 2014 -0400

    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 <[email protected]>
---
 src/lib/ecore_drm/ecore_drm_device.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/lib/ecore_drm/ecore_drm_device.c 
b/src/lib/ecore_drm/ecore_drm_device.c
index 2f7495d..7e43ad2 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;

-- 


Reply via email to