hardware: fix check for ro.hardware.<class> property

Replace == with >, property_get returns the length of the
property if found.

Change-Id: I4b8fe8f8dba578112d21eee5dc64be4aa27f3bfb
diff --git a/hardware.c b/hardware.c
index da89dd9..f835fda 100644
--- a/hardware.c
+++ b/hardware.c
@@ -160,7 +160,7 @@
 
     /* First try a property specific to the class and possibly instance */
     snprintf(prop_name, sizeof(prop_name), "ro.hardware.%s", name);
-    if (property_get(prop_name, prop, NULL) == 0) {
+    if (property_get(prop_name, prop, NULL) > 0) {
         if (hw_module_exists(path, sizeof(path), name, prop) == 0) {
             goto found;
         }