]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
fdt_support: refactor with fdt_find_or_add_subnode helper func
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Fri, 18 Apr 2014 08:40:58 +0000 (17:40 +0900)
committerTom Rini <trini@ti.com>
Thu, 19 Jun 2014 15:18:46 +0000 (11:18 -0400)
commit8edb21925e6135fb402770a288c4f321f7a05e1b
treeb8b372e74a309b1be56cbbd8ad705c3e74cfa47d
parent0613c57ce306722bb79637ffffc685c9acf35a7f
fdt_support: refactor with fdt_find_or_add_subnode helper func

Some functions in fdt_support.c do the same routine:
search a node with a given name ("chosen", "memory", etc.)
or newly create it if it does not exist.

So this commit makes that routine to a helper function.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
common/fdt_support.c