]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/clk/at91/clk-slow.c
Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
[mirror_ubuntu-artful-kernel.git] / drivers / clk / at91 / clk-slow.c
index 911e941f831848e07a449a85b83bb0569ed84d8c..61090b1146cfd93e1255eb40a4d690502f08c6f5 100644 (file)
@@ -245,7 +245,7 @@ at91_clk_register_slow_rc_osc(void __iomem *sckcr,
        init.ops = &slow_rc_osc_ops;
        init.parent_names = NULL;
        init.num_parents = 0;
-       init.flags = CLK_IS_ROOT | CLK_IGNORE_UNUSED;
+       init.flags = CLK_IGNORE_UNUSED;
 
        osc->hw.init = &init;
        osc->sckcr = sckcr;
@@ -360,11 +360,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);
@@ -433,7 +433,7 @@ static 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;
        struct regmap *regmap;