summaryrefslogtreecommitdiff
path: root/kdump/kdump.c
diff options
context:
space:
mode:
authorNikolaus Schulz <nikolaus.schulz@avionic-design.de>2016-04-29 16:22:23 +0200
committerSimon Horman <horms@verge.net.au>2016-05-04 10:22:58 +0900
commit2a36d76bbbc30bd55789136bd5e596c445c19caf (patch)
tree1ba0c4ef7e989fa07a72848bf3648ffa2fab4b60 /kdump/kdump.c
parenta4360e7306752231ab9c36371107cd212d6ff180 (diff)
arm: Change setup_dtb_prop to create nodes by offset and node name
setup_dtb_prop looks like a generic function that can find and add any nodes, which need not be top-level in the DT. In practice though, the function is only used for the top-level /chosen node, and it can't add nodes for which the parent doesn't exist. So far, so good - but for adding a new node to the DT, the parent offset need be passed to fdt_add_subnode. Currently in setup_dtb_prop the parent offset is unknown, and instead a bogus error code is passed to fdt_add_subnode. Fix that by adding the parent offset as an extra function argument to setup_dtb_prop, and change the handling of the /chosen node to operate on a relative path plus (zero) offset instead of an absolute path. This aligns setup_dtb_prop to the libfdt API, where functions commonly operate with a parent offset plus child node name. Signed-off-by: Nikolaus Schulz <nikolaus.schulz@avionic-design.de> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kdump/kdump.c')
0 files changed, 0 insertions, 0 deletions