summaryrefslogtreecommitdiffstats
path: root/drivers/clk/spear/clk-gpt-synth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clk/spear/clk-gpt-synth.c')
-rw-r--r--drivers/clk/spear/clk-gpt-synth.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/spear/clk-gpt-synth.c b/drivers/clk/spear/clk-gpt-synth.c
index 1a722e99e76e..6e95d7f3ade9 100644
--- a/drivers/clk/spear/clk-gpt-synth.c
+++ b/drivers/clk/spear/clk-gpt-synth.c
@@ -125,10 +125,8 @@ struct clk *clk_register_gpt(const char *name, const char *parent_name, unsigned
}
gpt = kzalloc(sizeof(*gpt), GFP_KERNEL);
- if (!gpt) {
- pr_err("could not allocate gpt clk\n");
+ if (!gpt)
return ERR_PTR(-ENOMEM);
- }
/* struct clk_gpt assignments */
gpt->reg = reg;