]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ipq806x: gcc: add support for child probe
authorAnsuel Smith <ansuelsmth@gmail.com>
Thu, 16 Jul 2020 02:28:10 +0000 (04:28 +0200)
committerStephen Boyd <sboyd@kernel.org>
Tue, 21 Jul 2020 07:10:21 +0000 (00:10 -0700)
Add support for child probing needed for tsens driver that share the
same regs of gcc for this platform.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Link: https://lore.kernel.org/r/20200716022817.30439-2-ansuelsmth@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/gcc-ipq806x.c

index a8456e09c44d1d65bfd85a97b0d3f9dcc3bea65e..d6b7adb4be380c6db69210aa72ae99e5ccb3ebfe 100644 (file)
@@ -3089,7 +3089,7 @@ static int gcc_ipq806x_probe(struct platform_device *pdev)
        regmap_write(regmap, 0x3cf8, 8);
        regmap_write(regmap, 0x3d18, 8);
 
-       return 0;
+       return of_platform_populate(pdev->dev.of_node, NULL, NULL, &pdev->dev);
 }
 
 static struct platform_driver gcc_ipq806x_driver = {