OF: add empty of_device_is_available for !OF
authorRob Herring <rob.herring@calxeda.com>
Wed, 20 Mar 2013 21:56:18 +0000 (16:56 -0500)
committerRob Herring <rob.herring@calxeda.com>
Thu, 11 Apr 2013 20:11:16 +0000 (15:11 -0500)
Add an empty version of of_device_is_available.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
include/linux/of.h

index a0f129284948e86bde078d794dd35fbe37629acd..95c8583688bd8092eb8dc68a1c6fecab30858eea 100644 (file)
@@ -379,6 +379,11 @@ static inline int of_device_is_compatible(const struct device_node *device,
        return 0;
 }
 
+static inline int of_device_is_available(const struct device_node *device)
+{
+       return 0;
+}
+
 static inline struct property *of_find_property(const struct device_node *np,
                                                const char *name,
                                                int *lenp)