|
@@ -234,14 +234,14 @@ cleanup:
|
|
|
|
|
|
static void __init of_ti_composite_clk_setup(struct device_node *node)
|
|
static void __init of_ti_composite_clk_setup(struct device_node *node)
|
|
{
|
|
{
|
|
- int num_clks;
|
|
|
|
|
|
+ unsigned int num_clks;
|
|
int i;
|
|
int i;
|
|
struct clk_hw_omap_comp *cclk;
|
|
struct clk_hw_omap_comp *cclk;
|
|
|
|
|
|
/* Number of component clocks to be put inside this clock */
|
|
/* Number of component clocks to be put inside this clock */
|
|
num_clks = of_clk_get_parent_count(node);
|
|
num_clks = of_clk_get_parent_count(node);
|
|
|
|
|
|
- if (num_clks < 1) {
|
|
|
|
|
|
+ if (!num_clks) {
|
|
pr_err("composite clk %s must have component(s)\n", node->name);
|
|
pr_err("composite clk %s must have component(s)\n", node->name);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -271,13 +271,13 @@ CLK_OF_DECLARE(ti_composite_clock, "ti,composite-clock",
|
|
int __init ti_clk_add_component(struct device_node *node, struct clk_hw *hw,
|
|
int __init ti_clk_add_component(struct device_node *node, struct clk_hw *hw,
|
|
int type)
|
|
int type)
|
|
{
|
|
{
|
|
- int num_parents;
|
|
|
|
|
|
+ unsigned int num_parents;
|
|
const char **parent_names;
|
|
const char **parent_names;
|
|
struct component_clk *clk;
|
|
struct component_clk *clk;
|
|
|
|
|
|
num_parents = of_clk_get_parent_count(node);
|
|
num_parents = of_clk_get_parent_count(node);
|
|
|
|
|
|
- if (num_parents < 1) {
|
|
|
|
|
|
+ if (!num_parents) {
|
|
pr_err("component-clock %s must have parent(s)\n", node->name);
|
|
pr_err("component-clock %s must have parent(s)\n", node->name);
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|