aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarch/arm/mach-ux500/clock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-ux500/clock.c b/arch/arm/mach-ux500/clock.c
index 6be3833e798..66e3e98259a 100755
--- a/arch/arm/mach-ux500/clock.c
+++ b/arch/arm/mach-ux500/clock.c
@@ -864,7 +864,8 @@ int clk_set_parent(struct clk *clk, struct clk *new_parent)
} else if ((clk->parent_cluster == NULL) && (clk->parent_periph == NULL)) {
/* Clk itself is a PRCMU clk */
prcmu_clk = (struct clk *) clk;
- }
+ } else
+ return -EINVAL;
/* Holding the lock so that val register is not modified in between */
/* NOTE : Dont use printk() further in the code untill the lock is held */