]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/commit
of: overlay: validate overlay properties #address-cells and #size-cells
authorFrank Rowand <frank.rowand@sony.com>
Fri, 5 Oct 2018 03:32:04 +0000 (20:32 -0700)
committerFrank Rowand <frank.rowand@sony.com>
Fri, 9 Nov 2018 06:11:32 +0000 (22:11 -0800)
commit6f75118800acf77f8ad6afec61ca1b2349ade371
treec8c46a2f76a8ae4cab60f79ad6575deef7334787
parent81225ea682f45629a66309636482b7c9bc2dcec1
of: overlay: validate overlay properties #address-cells and #size-cells

If overlay properties #address-cells or #size-cells are already in
the live devicetree for any given node, then the values in the
overlay must match the values in the live tree.

If the properties are already in the live tree then there is no
need to create a changeset entry to add them since they must
have the same value.  This reduces the memory used by the
changeset and eliminates a possible memory leak.

Tested-by: Alan Tull <atull@kernel.org>
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
drivers/of/overlay.c
include/linux/of.h