]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/clk/clk-s2mps11.c
Merge branch 'x86-vdso-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[karo-tx-linux.git] / drivers / clk / clk-s2mps11.c
index f4c1f0881b6c55cb4b589ba2a3516cacfccdf82e..f2f62a1bf61aaae9094e316eeddb4830a3286a55 100644 (file)
@@ -132,9 +132,9 @@ static struct device_node *s2mps11_clk_parse_dt(struct platform_device *pdev)
        int i;
 
        if (!iodev->dev->of_node)
-               return NULL;
+               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);