aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2015-10-23 13:18:34 -0400
committerOlof Johansson <olof@lixom.net>2015-10-23 13:18:34 -0400
commitfe9990f9fd77c7fbdb875799dba79479c5e1276f (patch)
tree309083df89d6db178c64c5570314de873198f32c
parent056a72a5597e0f3e06260d0b21feb99296f77427 (diff)
parent4681347153dba01836aca18ebcfb4101c927d8ec (diff)
Merge tag 'v4.4-rockchip-drivers2' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into next/drivers
Some fixes for the new power-domain driver, including restricting Rockchip Kconfig options, fixing a possible null-pointer and a typo in the dt-bindings. * tag 'v4.4-rockchip-drivers2' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip: dt-bindings: Correct paths in Rockchip power domains binding document soc: rockchip: power-domain: don't try to print the clock name in error case soc: rockchip: Restrict to ARCH_ROCKCHIP Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r--Documentation/devicetree/bindings/soc/rockchip/power_domain.txt4
-rw-r--r--drivers/soc/rockchip/Kconfig4
-rw-r--r--drivers/soc/rockchip/pm_domains.c4
3 files changed, 8 insertions, 4 deletions
diff --git a/Documentation/devicetree/bindings/soc/rockchip/power_domain.txt b/Documentation/devicetree/bindings/soc/rockchip/power_domain.txt
index 4be34188afe4..112756e11802 100644
--- a/Documentation/devicetree/bindings/soc/rockchip/power_domain.txt
+++ b/Documentation/devicetree/bindings/soc/rockchip/power_domain.txt
@@ -13,7 +13,7 @@ Required properties for power domain controller:
13 13
14Required properties for power domain sub nodes: 14Required properties for power domain sub nodes:
15- reg: index of the power domain, should use macros in: 15- reg: index of the power domain, should use macros in:
16 "include/dt-bindings/power-domain/rk3288.h" - for RK3288 type power domain. 16 "include/dt-bindings/power/rk3288-power.h" - for RK3288 type power domain.
17- clocks (optional): phandles to clocks which need to be enabled while power domain 17- clocks (optional): phandles to clocks which need to be enabled while power domain
18 switches state. 18 switches state.
19 19
@@ -35,7 +35,7 @@ Node of a device using power domains must have a power-domains property,
35containing a phandle to the power device node and an index specifying which 35containing a phandle to the power device node and an index specifying which
36power domain to use. 36power domain to use.
37The index should use macros in: 37The index should use macros in:
38 "include/dt-bindings/power-domain/rk3288.h" - for rk3288 type power domain. 38 "include/dt-bindings/power/rk3288-power.h" - for rk3288 type power domain.
39 39
40Example of the node using power domain: 40Example of the node using power domain:
41 41
diff --git a/drivers/soc/rockchip/Kconfig b/drivers/soc/rockchip/Kconfig
index 6ee03994801c..7140ff825598 100644
--- a/drivers/soc/rockchip/Kconfig
+++ b/drivers/soc/rockchip/Kconfig
@@ -1,3 +1,5 @@
1if ARCH_ROCKCHIP || COMPILE_TEST
2
1# 3#
2# Rockchip Soc drivers 4# Rockchip Soc drivers
3# 5#
@@ -12,3 +14,5 @@ config ROCKCHIP_PM_DOMAINS
12 mode. The RK3288 PMU is dedicated for managing the power of the whole chip. 14 mode. The RK3288 PMU is dedicated for managing the power of the whole chip.
13 15
14 If unsure, say N. 16 If unsure, say N.
17
18endif
diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/rockchip/pm_domains.c
index 8268d5d2b852..534c58937a56 100644
--- a/drivers/soc/rockchip/pm_domains.c
+++ b/drivers/soc/rockchip/pm_domains.c
@@ -265,8 +265,8 @@ static int rockchip_pm_add_one_domain(struct rockchip_pmu *pmu,
265 if (IS_ERR(clk)) { 265 if (IS_ERR(clk)) {
266 error = PTR_ERR(clk); 266 error = PTR_ERR(clk);
267 dev_err(pmu->dev, 267 dev_err(pmu->dev,
268 "%s: failed to get clk %pC (index %d): %d\n", 268 "%s: failed to get clk at index %d: %d\n",
269 node->name, clk, i, error); 269 node->name, i, error);
270 goto err_out; 270 goto err_out;
271 } 271 }
272 272