diff options
| author | Olof Johansson <olof@lixom.net> | 2019-04-29 12:56:30 -0400 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2019-04-29 12:56:30 -0400 |
| commit | a842b514db723d7bec5e8f9e6f57e5cfbb6b1f37 (patch) | |
| tree | 327bbd974eaef3a94e6651da3e1a8311aac2d29d | |
| parent | ffb832b4bb173ff6b701d2f82dfa5fe8d9f3fe9a (diff) | |
| parent | fbd7af041586a15f5dc15b9ec051d25aa5ebe00a (diff) | |
Merge tag 'v5.2-rockchip-soc32-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into arm/soc
Missing of_node_put and some added __init contants.
* tag 'v5.2-rockchip-soc32-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip:
ARM: rockchip: add missing of_node_put in rockchip_smp_prepare_pmu
ARM: rockchip: Mark pm-init functions __init
Signed-off-by: Olof Johansson <olof@lixom.net>
| -rw-r--r-- | arch/arm/mach-rockchip/platsmp.c | 1 | ||||
| -rw-r--r-- | arch/arm/mach-rockchip/pm.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c index 51984a40b097..4675d9202000 100644 --- a/arch/arm/mach-rockchip/platsmp.c +++ b/arch/arm/mach-rockchip/platsmp.c | |||
| @@ -245,6 +245,7 @@ static int __init rockchip_smp_prepare_pmu(void) | |||
| 245 | } | 245 | } |
| 246 | 246 | ||
| 247 | pmu_base = of_iomap(node, 0); | 247 | pmu_base = of_iomap(node, 0); |
| 248 | of_node_put(node); | ||
| 248 | if (!pmu_base) { | 249 | if (!pmu_base) { |
| 249 | pr_err("%s: could not map pmu registers\n", __func__); | 250 | pr_err("%s: could not map pmu registers\n", __func__); |
| 250 | return -ENOMEM; | 251 | return -ENOMEM; |
diff --git a/arch/arm/mach-rockchip/pm.c b/arch/arm/mach-rockchip/pm.c index 0592534e0b88..065b09e6f1eb 100644 --- a/arch/arm/mach-rockchip/pm.c +++ b/arch/arm/mach-rockchip/pm.c | |||
| @@ -59,7 +59,7 @@ static inline u32 rk3288_l2_config(void) | |||
| 59 | return l2ctlr; | 59 | return l2ctlr; |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | static void rk3288_config_bootdata(void) | 62 | static void __init rk3288_config_bootdata(void) |
| 63 | { | 63 | { |
| 64 | rkpm_bootdata_cpusp = rk3288_bootram_phy + (SZ_4K - 8); | 64 | rkpm_bootdata_cpusp = rk3288_bootram_phy + (SZ_4K - 8); |
| 65 | rkpm_bootdata_cpu_code = __pa_symbol(cpu_resume); | 65 | rkpm_bootdata_cpu_code = __pa_symbol(cpu_resume); |
| @@ -230,7 +230,7 @@ static void rk3288_suspend_finish(void) | |||
| 230 | pr_err("%s: Suspend finish failed\n", __func__); | 230 | pr_err("%s: Suspend finish failed\n", __func__); |
| 231 | } | 231 | } |
| 232 | 232 | ||
| 233 | static int rk3288_suspend_init(struct device_node *np) | 233 | static int __init rk3288_suspend_init(struct device_node *np) |
| 234 | { | 234 | { |
| 235 | struct device_node *sram_np; | 235 | struct device_node *sram_np; |
| 236 | struct resource res; | 236 | struct resource res; |
