From: Tom Rini Date: Mon, 19 Mar 2018 18:35:54 -0400 Subject: [U-Boot] [U-Boot, v2, 06/15] stm32mp: stm32f7_i2c: use calloc instead of kmalloc In-Reply-To: <1520847978-24321-7-git-send-email-patrick.delaunay@st.com> References: <1520847978-24321-7-git-send-email-patrick.delaunay@st.com> Message-ID: <20180319223554.GN4418@bill-the-cat.ec.rr.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Mar 12, 2018 at 10:46:09AM +0100, Patrick Delaunay wrote: > Kmalloc is using memalign allocation function. It is not necessary to > align this structure so to save bytes, we move to calloc. > > And kmalloc function can't be used in SPL early stage (in board_init_f()) > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: