of: base: don't try to read cells_name property if no cells_name set
Some device tree node parsed by of_count_phandle_with_args() have no #*-cells
parameter. To make linux device trees work with barebox, we should accept
cells_name set to NULL, so sync this behavior with linux.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 22ea5e5 commit f114b0479a2217c19cdf77a5aeeeb2a329255ff0
@Oleksij Rempel Oleksij Rempel authored on 23 Sep 2019
Sascha Hauer committed on 26 Sep 2019
Showing 1 changed file
View
drivers/of/base.c