Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
[linux-2.6-microblaze.git] / drivers / clk / sprd / pll.c
index 1579148..13a322b 100644 (file)
@@ -106,7 +106,7 @@ static unsigned long _sprd_pll_recalc_rate(const struct sprd_pll *pll,
 
        cfg = kcalloc(regs_num, sizeof(*cfg), GFP_KERNEL);
        if (!cfg)
-               return -ENOMEM;
+               return parent_rate;
 
        for (i = 0; i < regs_num; i++)
                cfg[i] = sprd_pll_read(pll, i);