Skip to contentSkip to conversation

dm: clk: add missing .priv_auto_alloc_size() for stm32f7

PATCH New patrice.chotard at st.com 3 participants 3 messages Sep 21, 2017 – Sep 29, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 7d1e1e8..aa4ad0a 100644
@@ -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
#1 lore raw

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_clk was not allocate which leads to unpredictable behaviour

---
 drivers/clk/clk_stm32f7.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
#2 lore raw

PATCH 1/1 dm: clk: add missing .priv_auto_alloc_size() for stm32f7

In reply to patrice.chotard at st.com
Quoted 8 lines · patrice.chotard at st.com

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

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>