]> git.sur5r.net Git - u-boot/commit
stm32mp: stm32f7_i2c: use calloc instead of kmalloc
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 12 Mar 2018 09:46:09 +0000 (10:46 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 19 Mar 2018 20:14:21 +0000 (16:14 -0400)
commit35746c0138c7a9900fb2678358904c10797a563a
tree12bead072fe275ace1e824e89f8d244e4fb1bf12
parentf11c308ac20eb14eb7ce0c4a25987cb5462e017c
stm32mp: stm32f7_i2c: use calloc instead of kmalloc

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 <patrick.delaunay@st.com>
drivers/i2c/stm32f7_i2c.c