aboutsummaryrefslogtreecommitdiff
path: root/drivers/clk/sprd/pll.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clk/sprd/pll.c')
-rw-r--r--drivers/clk/sprd/pll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/sprd/pll.c b/drivers/clk/sprd/pll.c
index 15791484388f..13a322b2535a 100644
--- a/drivers/clk/sprd/pll.c
+++ b/drivers/clk/sprd/pll.c
@@ -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);