[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>
diff --git a/include/asm-sparc64/prom.h b/include/asm-sparc64/prom.h
index eb75d3c..d0187b3 100644
--- a/include/asm-sparc64/prom.h
+++ b/include/asm-sparc64/prom.h
@@ -82,6 +82,9 @@
 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);