|
@@ -178,7 +178,7 @@ void __init ti_dt_clocks_register(struct ti_dt_clk oclks[])
|
|
|
|
|
|
struct clk_init_item {
|
|
struct clk_init_item {
|
|
struct device_node *node;
|
|
struct device_node *node;
|
|
- struct clk_hw *hw;
|
|
|
|
|
|
+ void *user;
|
|
ti_of_clk_init_cb_t func;
|
|
ti_of_clk_init_cb_t func;
|
|
struct list_head link;
|
|
struct list_head link;
|
|
};
|
|
};
|
|
@@ -188,14 +188,14 @@ static LIST_HEAD(retry_list);
|
|
/**
|
|
/**
|
|
* ti_clk_retry_init - retries a failed clock init at later phase
|
|
* ti_clk_retry_init - retries a failed clock init at later phase
|
|
* @node: device not for the clock
|
|
* @node: device not for the clock
|
|
- * @hw: partially initialized clk_hw struct for the clock
|
|
|
|
|
|
+ * @user: user data pointer
|
|
* @func: init function to be called for the clock
|
|
* @func: init function to be called for the clock
|
|
*
|
|
*
|
|
* Adds a failed clock init to the retry list. The retry list is parsed
|
|
* Adds a failed clock init to the retry list. The retry list is parsed
|
|
* once all the other clocks have been initialized.
|
|
* once all the other clocks have been initialized.
|
|
*/
|
|
*/
|
|
-int __init ti_clk_retry_init(struct device_node *node, struct clk_hw *hw,
|
|
|
|
- ti_of_clk_init_cb_t func)
|
|
|
|
|
|
+int __init ti_clk_retry_init(struct device_node *node, void *user,
|
|
|
|
+ ti_of_clk_init_cb_t func)
|
|
{
|
|
{
|
|
struct clk_init_item *retry;
|
|
struct clk_init_item *retry;
|
|
|
|
|
|
@@ -206,7 +206,7 @@ int __init ti_clk_retry_init(struct device_node *node, struct clk_hw *hw,
|
|
|
|
|
|
retry->node = node;
|
|
retry->node = node;
|
|
retry->func = func;
|
|
retry->func = func;
|
|
- retry->hw = hw;
|
|
|
|
|
|
+ retry->user = user;
|
|
list_add(&retry->link, &retry_list);
|
|
list_add(&retry->link, &retry_list);
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
@@ -328,7 +328,7 @@ void ti_dt_clk_init_retry_clks(void)
|
|
while (!list_empty(&retry_list) && retries) {
|
|
while (!list_empty(&retry_list) && retries) {
|
|
list_for_each_entry_safe(retry, tmp, &retry_list, link) {
|
|
list_for_each_entry_safe(retry, tmp, &retry_list, link) {
|
|
pr_debug("retry-init: %s\n", retry->node->name);
|
|
pr_debug("retry-init: %s\n", retry->node->name);
|
|
- retry->func(retry->hw, retry->node);
|
|
|
|
|
|
+ retry->func(retry->user, retry->node);
|
|
list_del(&retry->link);
|
|
list_del(&retry->link);
|
|
kfree(retry);
|
|
kfree(retry);
|
|
}
|
|
}
|