of: base: add chosen node if it does not exist when adding initrd
If the chosen node does not exist, of_add_initrd fails to pass the
initrd to the kernel. Instead it should create the chosen node, just
like of_fixup_bootargs does.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent ad43a6d commit f49b415b92319bbc9fdee0fe06b62476f276811a
@Philipp Zabel Philipp Zabel authored on 8 Dec 2016
Sascha Hauer committed on 9 Jan 2017
Showing 1 changed file
View
drivers/of/base.c