]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
dt: add empty of_machine_is_compatible
authorStephen Warren <swarren@nvidia.com>
Tue, 25 Oct 2011 12:01:26 +0000 (14:01 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 4 Nov 2011 04:12:51 +0000 (00:12 -0400)
The patch adds an empty function for non-dt build, so that
drivers migrating to dt can save some '#ifdef CONFIG_OF'.

v3: New patch

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
include/linux/of.h

index 4386c5fee57ca730ef43809e484441a12c54c0c0..0e89aa0bf07ad079ea27b2c05f2c960af8fc2c75 100644 (file)
@@ -326,6 +326,11 @@ static inline int of_alias_get_id(struct device_node *np, const char *stem)
        return -ENOSYS;
 }
 
+static inline int of_machine_is_compatible(const char *compat)
+{
+       return 0;
+}
+
 #define of_match_ptr(_ptr)     NULL
 #define of_match_node(_matches, _node) NULL
 #endif /* CONFIG_OF */