summaryrefslogtreecommitdiff
path: root/arch/arm/mach-rockchip
diff options
context:
space:
mode:
authorPeter Griffin <peter.griffin@linaro.org>2016-03-17 16:43:11 +0300
committerHeiko Stuebner <heiko@sntech.de>2016-04-12 04:30:30 +0300
commit26d5192953d88d6231d173281848a1c61f9e5d34 (patch)
treef9cb483bc5f5b13f2622fb95fa33b39b64ac1bd9 /arch/arm/mach-rockchip
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff)
downloadlinux-26d5192953d88d6231d173281848a1c61f9e5d34.tar.xz
ARM: rockchip: Fix use of plain integer as NULL pointer
This fixes the following sparse build warning: mach-rockchip/platsmp.c:68:43: Using plain integer as NULL pointer Signed-off-by: Peter Griffin <peter.griffin@linaro.org> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'arch/arm/mach-rockchip')
-rw-r--r--arch/arm/mach-rockchip/platsmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c
index d42a07e33482..4d827a069d49 100644
--- a/arch/arm/mach-rockchip/platsmp.c
+++ b/arch/arm/mach-rockchip/platsmp.c
@@ -65,7 +65,7 @@ static struct reset_control *rockchip_get_core_reset(int cpu)
if (dev)
np = dev->of_node;
else
- np = of_get_cpu_node(cpu, 0);
+ np = of_get_cpu_node(cpu, NULL);
return of_reset_control_get(np, NULL);
}