From: Stephen Boyd Date: Wed, 10 Aug 2016 19:17:34 +0000 (+0100) Subject: ARM: 8596/1: amba: Support clk parents and rates assigned in DT X-Git-Tag: v4.9-rc1~115^2~17 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=bcd3006f07ef9c80ac225854c1518c22f2f56d71;p=linux.git ARM: 8596/1: amba: Support clk parents and rates assigned in DT Add the call to of_clk_set_defaults() into the amba probe path so that devices on the amba bus can use the assigned rates and parents feature of the common clock framework. Cc: Michael Turquette Tested-by: Jorge Ramirez Ortiz Signed-off-by: Stephen Boyd Signed-off-by: Russell King --- diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c index a5b5c87e2114..a56fa2a1e9aa 100644 --- a/drivers/amba/bus.c +++ b/drivers/amba/bus.c @@ -19,6 +19,7 @@ #include #include #include +#include #include @@ -237,6 +238,10 @@ static int amba_probe(struct device *dev) int ret; do { + ret = of_clk_set_defaults(dev->of_node, false); + if (ret < 0) + break; + ret = dev_pm_domain_attach(dev, true); if (ret == -EPROBE_DEFER) break;