From: Heiko =?ISO-8859-1?Q?St=FCbner?= Date: Fri, 08 Nov 2019 15:51:01 +0100 Subject: [U-Boot] [PATCH v3 2/4] fdtdec: only create phandle if caller wants it in fdtdec_add_reserved_memory() In-Reply-To: <20191023144641.5710-2-heiko@sntech.de> References: <20191023144641.5710-1-heiko@sntech.de> <20191023144641.5710-2-heiko@sntech.de> Message-ID: <1932168.x5mmhkAN7Z@diego> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am Mittwoch, 23. Oktober 2019, 16:46:39 CET schrieb Heiko Stuebner: > From: Heiko Stuebner > > The phandlep pointer returning the phandle to the caller is optional > and if it is not set when calling fdtdec_add_reserved_memory() it is > highly likely that the caller is not interested in a phandle to the > created reserved-memory area and really just wants that area added. > > So just don't create a phandle in that case. > > Signed-off-by: Heiko Stuebner this patch already received in v2 a Reviewed-by: Simon Glass