[PATCH] clk: socfpga: Remove check for "reg" property in socfpga_clk_init
Dinh Nguyen
dinh.linux at gmail.com
Tue Oct 22 06:45:23 EDT 2013
Hi Mike,
On 10/14/13 7:34 PM, dinguyen at altera.com wrote:
> From: Dinh Nguyen <dinguyen at altera.com>
>
> 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 at altera.com>
> Cc: Mike Turquette <mturquette at linaro.org>
> Cc: linux-arm-kernel at lists.infradead.org
> ---
> drivers/clk/socfpga/clk.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/clk/socfpga/clk.c b/drivers/clk/socfpga/clk.c
> index 5bb848c..7f846bf 100644
> --- a/drivers/clk/socfpga/clk.c
> +++ b/drivers/clk/socfpga/clk.c
> @@ -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", ®);
> - if (WARN_ON(rc))
> - return NULL;
> + of_property_read_u32(node, "reg", ®);
>
> socfpga_clk = kzalloc(sizeof(*socfpga_clk), GFP_KERNEL);
> if (WARN_ON(!socfpga_clk))
Was wondering if you have gotten a chance to review this patch?
Thanks,
Dinh
More information about the linux-arm-kernel
mailing list