getDisplayAttributes now returns an error code

Change-Id: I79d2d38cc74fa5c4b3cc7d0538cef1c6d7f3e484
diff --git a/libhwc/hwc.cpp b/libhwc/hwc.cpp
index 6c080c1..48d9e3d 100644
--- a/libhwc/hwc.cpp
+++ b/libhwc/hwc.cpp
@@ -1689,7 +1689,7 @@
     }
 }
 
-static void exynos5_getDisplayAttributes(struct hwc_composer_device_1 *dev,
+static int exynos5_getDisplayAttributes(struct hwc_composer_device_1 *dev,
         int disp, uint32_t config, const uint32_t *attributes, int32_t *values)
 {
     struct exynos5_hwc_composer_device_1_t *pdev =
@@ -1700,9 +1700,13 @@
             values[i] = exynos5_fimd_attribute(pdev, attributes[i]);
         else if (disp == HWC_DISPLAY_EXTERNAL)
             values[i] = exynos5_hdmi_attribute(pdev, attributes[i]);
-        else
+        else {
             ALOGE("unknown display type %u", disp);
+            return -EINVAL;
+        }
     }
+
+    return 0;
 }
 
 static int exynos5_close(hw_device_t* device);