OF: Add a warning in case chosen node is not present
authorNick Kossifidis <mick@ics.forth.gr>
Sat, 10 Nov 2018 00:53:17 +0000 (02:53 +0200)
committerRob Herring <robh@kernel.org>
Mon, 3 Dec 2018 23:41:59 +0000 (17:41 -0600)
commite1e5254427525d59a184771b122469c998e53b58
treec09bf343733749924b9d5f20981972af38d80679
parenta2237fec1e0645d1e99e108f2658c26cb5a66c74
OF: Add a warning in case chosen node is not present

On architectures that only get their bootargs through devicetree's
chosen node (such as RISC-V), that node is mandatory. After a
discussion with Rob [1] I'm adding a warning in case chosen node
is not present, to let users know about it.

[1]: https://patchwork.ozlabs.org/patch/984224/#2016136

Signed-off-by: Nick Kossifidis <mick@ics.forth.gr>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/fdt.c