dm: clk: add missing .priv_auto_alloc_size() for stm32f7
Subsystems (2)
PATCH 1/1 dm: clk: add missing .priv_auto_alloc_size() for stm32f7
From: Patrice Chotard <[email protected]>
Add missing .priv_auto_alloc_size() callback. Previously private struct stm32_clk was not allocate which leads to unpredictable behaviour
--- drivers/clk/clk_stm32f7.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
drivers/clk/clk_stm32f7.c +7 -6
@@ -393,10 +393,11 @@ static const struct udevice_id stm32_clk_ids[] = { };U_BOOT_DRIVER (stm32f7_clk) = { - .name ="stm32f7_clk" , - .id =UCLASS_CLK , - .of_match = stm32_clk_ids, - .ops = &stm32_clk_ops, - .probe = stm32_clk_probe, - .flags =DM_FLAG_PRE_RELOC , + .name ="stm32f7_clk" , + .id =UCLASS_CLK , + .of_match = stm32_clk_ids, + .ops = &stm32_clk_ops, + .probe = stm32_clk_probe, + .priv_auto_alloc_size =sizeof (struct stm32_clk ), + .flags =DM_FLAG_PRE_RELOC , };
Signature · 1 line
1.9.1
PATCH 1/1 dm: clk: add missing .priv_auto_alloc_size() for stm32f7
Quoted 10 lines · On 21 September 2017 at 02:08, <[email protected]> wrote:
From: Patrice Chotard <[email protected]>
Add missing .priv_auto_alloc_size() callback. Previously private struct
stm32_clkwas not allocate which leads to unpredictable behaviourSigned-off-by Patrice Chotard <[email protected]>--- drivers/clk/clk_stm32f7.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
PATCH 1/1 dm: clk: add missing .priv_auto_alloc_size() for stm32f7
In reply to patrice.chotard at st.comQuoted 8 lines · patrice.chotard at st.com
From: Patrice Chotard <[email protected]>
Add missing .priv_auto_alloc_size() callback. Previously private struct
stm32_clkwas not allocate which leads to unpredictable behaviourSigned-off-by Patrice Chotard <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170929/b37fc0ef/attachment.sig>