/* Convenience function to find a node and return it's property or a default value if it doesn't exist.  */
u32 fdt_getprop_u32_default(void *fdt, const char *path, const char *prop, const u32 dflt)
/* Convenience function to find a node and return it's property or a default value if it doesn't exist.  */
u32 fdt_getprop_u32_default(void *fdt, const char *path, const char *prop, const u32 dflt)
{
	const u32 *val;
	int off;
	off = fdt_path_offset(fdt, path);
	if (off < 0)
		return dflt;
	val = fdt_getprop(fdt, off, prop, NULL);
	if (val)
		return *val;
	else
		return dflt;
}