From: Patrice Chotard Date: Thu, 21 Sep 2017 08:08:09 +0000 (+0200) Subject: dm: clk: add missing .priv_auto_alloc_size() for stm32f7 X-Git-Tag: v2017.11-rc1~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0cc40dfc66222f2d8f0fae642fbe75ff5235e9a5;p=u-boot dm: clk: add missing .priv_auto_alloc_size() for stm32f7 Add missing .priv_auto_alloc_size() callback. Previously private struct stm32_clk was not allocate which leads to unpredictable behaviour Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass --- diff --git a/drivers/clk/clk_stm32f7.c b/drivers/clk/clk_stm32f7.c index 255a583c95..68d6ba0461 100644 --- a/drivers/clk/clk_stm32f7.c +++ b/drivers/clk/clk_stm32f7.c @@ -310,10 +310,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, };