/* Get cells len in bytes if #NNNN-cells property is 2 then len is 8 otherwise len is 4  */
static int get_cells_len(void *blob, char *nr_cells_name)
/* Get cells len in bytes if #NNNN-cells property is 2 then len is 8 otherwise len is 4  */
static int get_cells_len(void *blob, char *nr_cells_name)
{
	const u32 *cell;
	cell = fdt_getprop(blob, 0, nr_cells_name, NULL);
	if (cell && *cell == 2)
		return 8;
	return 4;
}