Skip to content

Commit

Permalink
clk: socfpga: Remove check for "reg" property in socfpga_clk_init
Browse files Browse the repository at this point in the history
The function socfpga_clk_init() can support clocks that do not have a divider
register, but a fixed-divider that can be read from DTS. Therefore, the "reg"
property is not a failing condition for socfpga_clk_init().

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
  • Loading branch information
Dinh Nguyen authored and Mike Turquette committed Nov 27, 2013
1 parent f881591 commit 4d04391
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/clk/socfpga/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ static __init struct clk *socfpga_clk_init(struct device_node *node,
int rc;
u32 fixed_div;

rc = of_property_read_u32(node, "reg", &reg);
if (WARN_ON(rc))
return NULL;
of_property_read_u32(node, "reg", &reg);

socfpga_clk = kzalloc(sizeof(*socfpga_clk), GFP_KERNEL);
if (WARN_ON(!socfpga_clk))
Expand Down

0 comments on commit 4d04391

Please sign in to comment.