Merge branches 'clk-qcom-msm8998', 'clk-fractional-parent', 'clk-x86-mv' and 'clk...
[muen/linux.git] / drivers / clk / clk-qoriq.c
index 5baa9e051110c3036570b884b6914dd6245b0233..1212a9be7e80f0d389b00670b1b345f409b63448 100644 (file)
@@ -1148,8 +1148,8 @@ static void __init create_one_pll(struct clockgen *cg, int idx)
                pll->div[i].clk = clk;
                ret = clk_register_clkdev(clk, pll->div[i].name, NULL);
                if (ret != 0)
-                       pr_err("%s: %s: register to lookup table failed %ld\n",
-                              __func__, pll->div[i].name, PTR_ERR(clk));
+                       pr_err("%s: %s: register to lookup table failed %d\n",
+                              __func__, pll->div[i].name, ret);
 
        }
 }
@@ -1389,6 +1389,7 @@ static void __init clockgen_init(struct device_node *np)
                                pr_err("%s: Couldn't map %pOF regs\n", __func__,
                                       guts);
                        }
+                       of_node_put(guts);
                }
 
        }