*
  *  @device: Node to check for availability, with locks already held
  *
- *  Returns 1 if the status property is absent or set to "okay" or "ok",
- *  0 otherwise
+ *  Returns true if the status property is absent or set to "okay" or "ok",
+ *  false otherwise
  */
-static int __of_device_is_available(const struct device_node *device)
+static bool __of_device_is_available(const struct device_node *device)
 {
        const char *status;
        int statlen;
 
        if (!device)
-               return 0;
+               return false;
 
        status = __of_get_property(device, "status", &statlen);
        if (status == NULL)
-               return 1;
+               return true;
 
        if (statlen > 0) {
                if (!strcmp(status, "okay") || !strcmp(status, "ok"))
-                       return 1;
+                       return true;
        }
 
-       return 0;
+       return false;
 }
 
 /**
  *
  *  @device: Node to check for availability
  *
- *  Returns 1 if the status property is absent or set to "okay" or "ok",
- *  0 otherwise
+ *  Returns true if the status property is absent or set to "okay" or "ok",
+ *  false otherwise
  */
-int of_device_is_available(const struct device_node *device)
+bool of_device_is_available(const struct device_node *device)
 {
        unsigned long flags;
-       int res;
+       bool res;
 
        raw_spin_lock_irqsave(&devtree_lock, flags);
        res = __of_device_is_available(device);
 
                                              const char **out_strs, size_t sz, int index);
 extern int of_device_is_compatible(const struct device_node *device,
                                   const char *);
-extern int of_device_is_available(const struct device_node *device);
+extern bool of_device_is_available(const struct device_node *device);
 extern const void *of_get_property(const struct device_node *node,
                                const char *name,
                                int *lenp);
        return 0;
 }
 
-static inline int of_device_is_available(const struct device_node *device)
+static inline bool of_device_is_available(const struct device_node *device)
 {
-       return 0;
+       return false;
 }
 
 static inline struct property *of_find_property(const struct device_node *np,