summaryrefslogtreecommitdiffstats
path: root/drivers/clk/spear/clk-aux-synth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clk/spear/clk-aux-synth.c')
-rw-r--r--drivers/clk/spear/clk-aux-synth.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/spear/clk-aux-synth.c b/drivers/clk/spear/clk-aux-synth.c
index 23a6b10e1d6a..906410413bc1 100644
--- a/drivers/clk/spear/clk-aux-synth.c
+++ b/drivers/clk/spear/clk-aux-synth.c
@@ -149,10 +149,8 @@ struct clk *clk_register_aux(const char *aux_name, const char *gate_name,
}
aux = kzalloc(sizeof(*aux), GFP_KERNEL);
- if (!aux) {
- pr_err("could not allocate aux clk\n");
+ if (!aux)
return ERR_PTR(-ENOMEM);
- }
/* struct clk_aux assignments */
if (!masks)