summaryrefslogtreecommitdiff
path: root/drivers/of/unittest.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@linaro.org>2014-11-28 19:03:33 +0300
committerGrant Likely <grant.likely@linaro.org>2014-12-04 02:12:40 +0300
commit70161ff336674ecfd20614a9c0c61cb17a6e9e83 (patch)
tree1732d2b00f8242bddabe39a3307a7746fe11e1d0 /drivers/of/unittest.c
parent5267720e7515f0fadf4cdef68dccafc18d48c806 (diff)
downloadlinux-70161ff336674ecfd20614a9c0c61cb17a6e9e83.tar.xz
of: Drop ->next pointer from struct device_node
The ->next pointer in struct device_node is a hanger-on from when it was used to iterate over the whole tree by a particular device_type property value. Those days are long over, but the fdt unflattening code still uses it to put nodes in the unflattened tree into the same order as node in the flat tree. By reworking the unflattening code to reverse the list after unflattening all the children of a node, the pointer can be dropped which gives a small amount of memory savings. Signed-off-by: Grant Likely <grant.likely@linaro.org> Acked-by: Frank Rowand <frank.rowand@sonymobile.com> Cc: Gaurav Minocha <gaurav.minocha.os@gmail.com>
Diffstat (limited to 'drivers/of/unittest.c')
0 files changed, 0 insertions, 0 deletions