/* Retreive and validate the ibm,lmb-size property for drconf memory from the device tree.  */
static u64 of_get_lmb_size(struct device_node *memory)
/* Retreive and validate the ibm,lmb-size property for drconf memory from the device tree.  */
static u64 of_get_lmb_size(struct device_node *memory)
{
	const u32 *prop;
	u32 len;
	prop = of_get_property(memory, "ibm,lmb-size", &len);
	if (!prop || len < sizeof(unsigned int))
		return 0;
	return read_n_cells(n_mem_size_cells, &prop);
}