Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316608
b: refs/heads/master
c: 9ca1c5a
h: refs/heads/master
v: v3
  • Loading branch information
Rajendra Nayak authored and Mike Turquette committed Jul 11, 2012
1 parent 4bcafb1 commit 04ad45d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f05259a6ffa40097b5565f25c3fcf833a9d3ecf5
refs/heads/master: 9ca1c5a4bf4105d6f2f2a46892495953dd3e2fec
4 changes: 2 additions & 2 deletions trunk/drivers/clk/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1235,8 +1235,8 @@ int __clk_init(struct device *dev, struct clk *clk)
* If clk->parents is not NULL we skip this entire block. This allows
* for clock drivers to statically initialize clk->parents.
*/
if (clk->num_parents && !clk->parents) {
clk->parents = kmalloc((sizeof(struct clk*) * clk->num_parents),
if (clk->num_parents > 1 && !clk->parents) {
clk->parents = kzalloc((sizeof(struct clk*) * clk->num_parents),
GFP_KERNEL);
/*
* __clk_lookup returns NULL for parents that have not been
Expand Down

0 comments on commit 04ad45d

Please sign in to comment.