
30 Aug
2016
30 Aug
'16
10:11 a.m.
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@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