[U-Boot] [PATCH v1 2/2] clk: at91: Add .ops callback for clk_generic

Wenyou Yang wenyou.yang at atmel.com
Tue Aug 30 10:11:38 CEST 2016


To avoid the wild pointer as NULL->of_xlate, add an empty .ops
callback for the clk_generic driver.

Signed-off-by: Wenyou Yang <wenyou.yang at atmel.com>
---

 drivers/clk/at91/pmc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c
index 76ff387..1043148 100644
--- a/drivers/clk/at91/pmc.c
+++ b/drivers/clk/at91/pmc.c
@@ -59,7 +59,10 @@ int at91_pmc_clk_node_bind(struct udevice *dev)
 	return 0;
 }
 
+static struct clk_ops generic_clk_ops;
+
 U_BOOT_DRIVER(clk_generic) = {
 	.id	= UCLASS_CLK,
 	.name	= "clk",
+	.ops = &generic_clk_ops,
 };
-- 
2.7.4



More information about the U-Boot mailing list