On 03/11/17 19:04, Stephen Boyd wrote:
On 10/30, Tero Kristo wrote:
@@ -508,7 +515,11 @@ static void __init _ti_omap4_clkctrl_setup(struct device_node *node)
reg_data++;
}
- of_clk_add_hw_provider(node, _ti_omap4_clkctrl_xlate, provider);
+ ret = of_clk_add_hw_provider(node, _ti_omap4_clkctrl_xlate, provider);
+ if (ret == -EPROBE_DEFER)
+ ti_clk_retry_init(node, (void *)provider,
You need the cast? The type of ti_clk_retry_init's second
parameter should probably be a void pointer instead.
The compiler burps out a warning if there is no cast. I'll change the
parameter type though, becomes slightly larger patch but that would be
cleaner.
-Tero
+ (ti_of_clk_init_cb_t)_clkctrl_add_provider);
+
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html