diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-06-21 23:07:29 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-23 23:15:15 -0700 |
commit | 6d307724cb6a6b8466cad4fdf13d8a409bc2433f (patch) | |
tree | 66809731d2a7257f23b8583c69b7bd71a83d634c /include/asm-sparc64 | |
parent | 6760d28bc691bb255c501c9b680f2fc1162258b2 (diff) |
[SPARC64]: Add of_getintprop_default().
This encodes a common idiomatic coding pattern used when
dealing with integer properties.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64')
-rw-r--r-- | include/asm-sparc64/prom.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-sparc64/prom.h b/include/asm-sparc64/prom.h index eb75d3cbcf4..d0187b3a0ec 100644 --- a/include/asm-sparc64/prom.h +++ b/include/asm-sparc64/prom.h @@ -82,6 +82,9 @@ extern struct device_node *of_get_next_child(const struct device_node *node, extern struct property *of_find_property(struct device_node *np, const char *name, int *lenp); +extern int of_getintprop_default(struct device_node *np, + const char *name, + int def); extern void prom_build_devicetree(void); |