diff --git a/drivers/of/base.c b/drivers/of/base.c index 4bcc113..fc01a99 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -129,11 +129,6 @@ } EXPORT_SYMBOL(of_find_property); -static const void *of_property_get_value(struct property *pp) -{ - return pp->value ? pp->value : pp->value_const; -} - static void of_alias_add(struct alias_prop *ap, struct device_node *np, int id, const char *stem, int stem_len) { diff --git a/include/of.h b/include/of.h index fec51bb..7fc4b77 100644 --- a/include/of.h +++ b/include/of.h @@ -94,6 +94,12 @@ } } +static inline const void *of_property_get_value(struct property *pp) +{ + return pp->value ? pp->value : pp->value_const; +} + + void of_print_property(const void *data, int len); void of_print_cmdline(struct device_node *root);