clk: at91: Remove impossible checks for of_clk_get_parent_count()
[deliverable/linux.git] / drivers / clk / at91 / clk-slow.c
index 6f99a530ead6002d916ef67a42620ced1836d1fa..67b304726d0687b490f6e82328403a8eadecfc0a 100644 (file)
@@ -366,11 +366,11 @@ void __init of_at91sam9x5_clk_slow_setup(struct device_node *np,
 {
        struct clk *clk;
        const char *parent_names[2];
-       int num_parents;
+       unsigned int num_parents;
        const char *name = np->name;
 
        num_parents = of_clk_get_parent_count(np);
-       if (num_parents <= 0 || num_parents > 2)
+       if (num_parents == 0 || num_parents > 2)
                return;
 
        of_clk_parent_fill(np, parent_names, num_parents);
@@ -437,7 +437,7 @@ void __init of_at91sam9260_clk_slow_setup(struct device_node *np,
 {
        struct clk *clk;
        const char *parent_names[2];
-       int num_parents;
+       unsigned int num_parents;
        const char *name = np->name;
 
        num_parents = of_clk_get_parent_count(np);
This page took 0.027808 seconds and 5 git commands to generate.