Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372460
b: refs/heads/master
c: 6e92bf5
h: refs/heads/master
v: v3
  • Loading branch information
Heiko Stuebner authored and Kukjin Kim committed Mar 28, 2013
1 parent 2db9013 commit 7741295
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 2466196d3e4f1fbe902ca8480bf4a03db78572b2
refs/heads/master: 6e92bf5a01afb1f897aa15a34517da07d7c0c320
8 changes: 4 additions & 4 deletions trunk/drivers/clk/samsung/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ void __init samsung_clk_init(struct device_node *np, void __iomem *base,
}
#endif

if (!np)
return;

#ifdef CONFIG_OF
clk_table = kzalloc(sizeof(struct clk *) * nr_clks, GFP_KERNEL);
if (!clk_table)
panic("could not allocate clock lookup table\n");

if (!np)
return;

#ifdef CONFIG_OF
clk_data.clks = clk_table;
clk_data.clk_num = nr_clks;
of_clk_add_provider(np, of_clk_src_onecell_get, &clk_data);
Expand Down

0 comments on commit 7741295

Please sign in to comment.