diff options
author | Olof Johansson <olof@lixom.net> | 2015-08-25 13:16:48 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2015-08-25 13:16:48 -0400 |
commit | 1ec6f701707e4e97e451ff8b662360f1262a6c59 (patch) | |
tree | ef91c88ec4be315debbde0867a40b852772e8444 | |
parent | 6be4b0da4ecf1472cb4a064c752214dcb2ba4be2 (diff) | |
parent | 2a03c025fdea25a491c359b31d8a8c8d452b06d0 (diff) |
Merge tag 'v4.3-rockchip32-soc3' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into next/soc
Fix for wrong error-codes in rk3288 suspend code.
* tag 'v4.3-rockchip32-soc3' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip:
ARM: rockchip: pm: Fix PTR_ERR() argument
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | arch/arm/mach-rockchip/pm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-rockchip/pm.c b/arch/arm/mach-rockchip/pm.c index 156cd23dfba5..bee8c8051929 100644 --- a/arch/arm/mach-rockchip/pm.c +++ b/arch/arm/mach-rockchip/pm.c | |||
@@ -246,14 +246,14 @@ static int rk3288_suspend_init(struct device_node *np) | |||
246 | "rockchip,rk3288-sgrf"); | 246 | "rockchip,rk3288-sgrf"); |
247 | if (IS_ERR(sgrf_regmap)) { | 247 | if (IS_ERR(sgrf_regmap)) { |
248 | pr_err("%s: could not find sgrf regmap\n", __func__); | 248 | pr_err("%s: could not find sgrf regmap\n", __func__); |
249 | return PTR_ERR(pmu_regmap); | 249 | return PTR_ERR(sgrf_regmap); |
250 | } | 250 | } |
251 | 251 | ||
252 | grf_regmap = syscon_regmap_lookup_by_compatible( | 252 | grf_regmap = syscon_regmap_lookup_by_compatible( |
253 | "rockchip,rk3288-grf"); | 253 | "rockchip,rk3288-grf"); |
254 | if (IS_ERR(grf_regmap)) { | 254 | if (IS_ERR(grf_regmap)) { |
255 | pr_err("%s: could not find grf regmap\n", __func__); | 255 | pr_err("%s: could not find grf regmap\n", __func__); |
256 | return PTR_ERR(pmu_regmap); | 256 | return PTR_ERR(grf_regmap); |
257 | } | 257 | } |
258 | 258 | ||
259 | sram_np = of_find_compatible_node(NULL, NULL, | 259 | sram_np = of_find_compatible_node(NULL, NULL, |