diff options
Diffstat (limited to 'drivers/clk/mmp/clk-gate.c')
| -rw-r--r-- | drivers/clk/mmp/clk-gate.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/mmp/clk-gate.c b/drivers/clk/mmp/clk-gate.c index d20cd3431ac2..7355595c42e2 100644 --- a/drivers/clk/mmp/clk-gate.c +++ b/drivers/clk/mmp/clk-gate.c | |||
| @@ -103,10 +103,8 @@ struct clk *mmp_clk_register_gate(struct device *dev, const char *name, | |||
| 103 | 103 | ||
| 104 | /* allocate the gate */ | 104 | /* allocate the gate */ |
| 105 | gate = kzalloc(sizeof(*gate), GFP_KERNEL); | 105 | gate = kzalloc(sizeof(*gate), GFP_KERNEL); |
| 106 | if (!gate) { | 106 | if (!gate) |
| 107 | pr_err("%s:%s could not allocate gate clk\n", __func__, name); | ||
| 108 | return ERR_PTR(-ENOMEM); | 107 | return ERR_PTR(-ENOMEM); |
| 109 | } | ||
| 110 | 108 | ||
| 111 | init.name = name; | 109 | init.name = name; |
| 112 | init.ops = &mmp_clk_gate_ops; | 110 | init.ops = &mmp_clk_gate_ops; |
