diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-03-21 09:36:33 +0100 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2014-04-08 18:16:20 -0700 |
commit | a2913c54443cd20f36c869ad5902b129f6da5854 (patch) | |
tree | f15c66d3ec2e4b727be4c6078e1a16c34e063184 /backport/backport-include/linux/of.h | |
parent | 8e946501aef6e3dd5bac12eb45d24df8248672b0 (diff) |
backports: fix compilation with CONFIG_OF
There are two users of of_find_property_value_of_size() which is
originally static in the kernel, but we need it exposed (but not
exported) so that multiple backport files can use it; do that.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Diffstat (limited to 'backport/backport-include/linux/of.h')
-rw-r--r-- | backport/backport-include/linux/of.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backport/backport-include/linux/of.h b/backport/backport-include/linux/of.h index e6000554..e7f7ea74 100644 --- a/backport/backport-include/linux/of.h +++ b/backport/backport-include/linux/of.h @@ -52,6 +52,9 @@ static inline int of_property_read_u8_array(const struct device_node *np, extern int of_property_read_u32_index(const struct device_node *np, const char *propname, u32 index, u32 *out_value); +/* This is static in the kernel, but we need it in multiple places */ +void *of_find_property_value_of_size(const struct device_node *np, + const char *propname, u32 len); #else static inline int of_property_read_u32_index(const struct device_node *np, const char *propname, u32 index, u32 *out_value) |