clk: checking wrong variable in __set_clk_parents()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 1 Aug 2014 08:14:17 +0000 (11:14 +0300)
committerMike Turquette <mturquette@linaro.org>
Fri, 1 Aug 2014 17:47:26 +0000 (10:47 -0700)
There is a cut and paste bug so we check "pclk" instead of "clk".

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-conf.c

index 1f73019..4e1bda7 100644 (file)
@@ -55,10 +55,10 @@ static int __set_clk_parents(struct device_node *node, bool clk_supplier)
                        goto err;
                }
                clk = of_clk_get_by_clkspec(&clkspec);
-               if (IS_ERR(pclk)) {
+               if (IS_ERR(clk)) {
                        pr_warn("clk: couldn't get parent clock %d for %s\n",
                                index, node->full_name);
-                       rc = PTR_ERR(pclk);
+                       rc = PTR_ERR(clk);
                        goto err;
                }