diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-03-21 16:39:20 +0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-03-25 02:11:27 +0400 |
commit | afbd1a0c309e3d5cb581a3f7c879be97855fe72f (patch) | |
tree | 28f4116cc1c0226b45a2cbe8d2d65da127f14db2 /drivers/clk | |
parent | 238e14055da87d0d012257788e39fe0df3a82226 (diff) | |
download | linux-afbd1a0c309e3d5cb581a3f7c879be97855fe72f.tar.xz |
clk: s2mps11: Use of_get_child_by_name
of_find_node_by_name() walks over all nodes and can thus walk outside of
the parent node. Use of_get_child_by_name() instead.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/clk-s2mps11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-s2mps11.c b/drivers/clk/clk-s2mps11.c index 10e66e90d81c..f2f62a1bf61a 100644 --- a/drivers/clk/clk-s2mps11.c +++ b/drivers/clk/clk-s2mps11.c @@ -134,7 +134,7 @@ static struct device_node *s2mps11_clk_parse_dt(struct platform_device *pdev) if (!iodev->dev->of_node) return ERR_PTR(-EINVAL); - clk_np = of_find_node_by_name(iodev->dev->of_node, "clocks"); + clk_np = of_get_child_by_name(iodev->dev->of_node, "clocks"); if (!clk_np) { dev_err(&pdev->dev, "could not find clock sub-node\n"); return ERR_PTR(-EINVAL); |