ecore-drm: Fix failure of finding drm device on ARM platforms.
authorChris Michael <cp.michael@samsung.com>
Wed, 8 Oct 2014 13:31:37 +0000 (09:31 -0400)
committerChris Michael <cp.michael@samsung.com>
Wed, 8 Oct 2014 13:31:37 +0000 (09:31 -0400)
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>
src/lib/ecore_drm/ecore_drm_device.c

index 2f7495d78d0e31416970474465c2ed1ca7a72d68..7e43ad21a0cf1abe2b2fee608b4901db56f07099 100644 (file)
@@ -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;