Loading arch/sparc/kernel/prom.c +6 −3 Original line number Diff line number Diff line Loading @@ -32,7 +32,8 @@ static struct device_node *allnodes; */ static DEFINE_RWLOCK(devtree_lock); int of_device_is_compatible(struct device_node *device, const char *compat) int of_device_is_compatible(const struct device_node *device, const char *compat) { const char* cp; int cplen, l; Loading Loading @@ -150,7 +151,8 @@ struct device_node *of_find_compatible_node(struct device_node *from, } EXPORT_SYMBOL(of_find_compatible_node); struct property *of_find_property(struct device_node *np, const char *name, struct property *of_find_property(const struct device_node *np, const char *name, int *lenp) { struct property *pp; Loading @@ -170,7 +172,8 @@ EXPORT_SYMBOL(of_find_property); * Find a property with a given name for a given node * and return the value. */ const void *of_get_property(struct device_node *np, const char *name, int *lenp) const void *of_get_property(const struct device_node *np, const char *name, int *lenp) { struct property *pp = of_find_property(np,name,lenp); return pp ? pp->value : NULL; Loading include/asm-sparc/prom.h +6 −4 Original line number Diff line number Diff line Loading @@ -85,11 +85,13 @@ extern struct device_node *of_find_node_by_phandle(phandle handle); extern struct device_node *of_get_parent(const struct device_node *node); extern struct device_node *of_get_next_child(const struct device_node *node, struct device_node *prev); extern struct property *of_find_property(struct device_node *np, extern struct property *of_find_property(const struct device_node *np, const char *name, int *lenp); extern int of_device_is_compatible(struct device_node *device, const char *); extern const void *of_get_property(struct device_node *node, const char *name, extern int of_device_is_compatible(const struct device_node *device, const char *); extern const void *of_get_property(const struct device_node *node, const char *name, int *lenp); #define get_property(node,name,lenp) of_get_property(node,name,lenp) extern int of_set_property(struct device_node *node, const char *name, void *val, int len); Loading Loading
arch/sparc/kernel/prom.c +6 −3 Original line number Diff line number Diff line Loading @@ -32,7 +32,8 @@ static struct device_node *allnodes; */ static DEFINE_RWLOCK(devtree_lock); int of_device_is_compatible(struct device_node *device, const char *compat) int of_device_is_compatible(const struct device_node *device, const char *compat) { const char* cp; int cplen, l; Loading Loading @@ -150,7 +151,8 @@ struct device_node *of_find_compatible_node(struct device_node *from, } EXPORT_SYMBOL(of_find_compatible_node); struct property *of_find_property(struct device_node *np, const char *name, struct property *of_find_property(const struct device_node *np, const char *name, int *lenp) { struct property *pp; Loading @@ -170,7 +172,8 @@ EXPORT_SYMBOL(of_find_property); * Find a property with a given name for a given node * and return the value. */ const void *of_get_property(struct device_node *np, const char *name, int *lenp) const void *of_get_property(const struct device_node *np, const char *name, int *lenp) { struct property *pp = of_find_property(np,name,lenp); return pp ? pp->value : NULL; Loading
include/asm-sparc/prom.h +6 −4 Original line number Diff line number Diff line Loading @@ -85,11 +85,13 @@ extern struct device_node *of_find_node_by_phandle(phandle handle); extern struct device_node *of_get_parent(const struct device_node *node); extern struct device_node *of_get_next_child(const struct device_node *node, struct device_node *prev); extern struct property *of_find_property(struct device_node *np, extern struct property *of_find_property(const struct device_node *np, const char *name, int *lenp); extern int of_device_is_compatible(struct device_node *device, const char *); extern const void *of_get_property(struct device_node *node, const char *name, extern int of_device_is_compatible(const struct device_node *device, const char *); extern const void *of_get_property(const struct device_node *node, const char *name, int *lenp); #define get_property(node,name,lenp) of_get_property(node,name,lenp) extern int of_set_property(struct device_node *node, const char *name, void *val, int len); Loading