clk: ti: Update for of_clk_get_parent_count() returning unsigned int
Change the types here to unsigned int instead of int and update the checks for == 0 instead < 1 to be more explicit about what's going on now that of_clk_get_parent_count() has changed return types. Cc: Tero Kristo <t-kristo@ti.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:
@@ -374,7 +374,7 @@ static void __init of_ti_dpll_setup(struct device_node *node,
|
||||
init->ops = ops;
|
||||
|
||||
init->num_parents = of_clk_get_parent_count(node);
|
||||
if (init->num_parents < 1) {
|
||||
if (!init->num_parents) {
|
||||
pr_err("%s must have parent(s)\n", node->name);
|
||||
goto cleanup;
|
||||
}
|
||||
|
Reference in New Issue
Block a user