/* Convenience function to return a node's property or a default value if the property doesn't exist.  */
u32 fdt_getprop_u32_default_node(const void *fdt, int off, int cell, const char *prop, const u32 dflt)
/* Convenience function to return a node's property or a default value if the property doesn't exist.  */
u32 fdt_getprop_u32_default_node(const void *fdt, int off, int cell, const char *prop, const u32 dflt)
{
	const fdt32_t *val;
	int len;
	val = fdt_getprop(fdt, off, prop, &len);
	if (!val)
		return dflt;
	if (len < ((cell + 1) * sizeof(uint32_t)))
		return dflt;
	return fdt32_to_cpu(*val);
}