]> Git Repo - linux.git/commitdiff
clk: socfpga: Remove check for "reg" property in socfpga_clk_init
authorDinh Nguyen <[email protected]>
Thu, 24 Oct 2013 08:18:30 +0000 (03:18 -0500)
committerMike Turquette <[email protected]>
Wed, 27 Nov 2013 20:48:51 +0000 (12:48 -0800)
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 <[email protected]>
Signed-off-by: Mike Turquette <[email protected]>
drivers/clk/socfpga/clk.c

index 81dd31a686df9e467b7c111f9c808ee568139551..c3784899f00214bbedd2dcd7d2cbba6e9f0908ae 100644 (file)
@@ -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))
This page took 0.044143 seconds and 4 git commands to generate.