projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drm/plane: Remove redundant extern
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
clk
/
clk-gate.c
diff --git
a/drivers/clk/clk-gate.c
b/drivers/clk/clk-gate.c
index 3f0e4200cb5d4ca4a680c78479ac86ed116766a5..551dd067279402abbd45685315ee9df1c5f7c5d5 100644
(file)
--- a/
drivers/clk/clk-gate.c
+++ b/
drivers/clk/clk-gate.c
@@
-135,11
+135,9
@@
struct clk *clk_register_gate(struct device *dev, const char *name,
}
/* allocate the gate */
}
/* allocate the gate */
- gate = kzalloc(sizeof(struct clk_gate), GFP_KERNEL);
- if (!gate) {
- pr_err("%s: could not allocate gated clk\n", __func__);
+ gate = kzalloc(sizeof(*gate), GFP_KERNEL);
+ if (!gate)
return ERR_PTR(-ENOMEM);
return ERR_PTR(-ENOMEM);
- }
init.name = name;
init.ops = &clk_gate_ops;
init.name = name;
init.ops = &clk_gate_ops;