projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3983138
)
dt: add empty of_machine_is_compatible
author
Stephen Warren
<swarren@nvidia.com>
Tue, 25 Oct 2011 12:01:26 +0000
(14:01 +0200)
committer
Grant 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
patch
|
blob
|
history
diff --git
a/include/linux/of.h
b/include/linux/of.h
index 4386c5fee57ca730ef43809e484441a12c54c0c0..0e89aa0bf07ad079ea27b2c05f2c960af8fc2c75 100644
(file)
--- a/
include/linux/of.h
+++ b/
include/linux/of.h
@@
-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 */