diff options
author | Peter Griffin <peter.griffin@linaro.org> | 2016-03-17 14:43:11 +0100 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2016-04-12 03:30:30 +0200 |
commit | 26d5192953d88d6231d173281848a1c61f9e5d34 (patch) | |
tree | f9cb483bc5f5b13f2622fb95fa33b39b64ac1bd9 /arch/arm/mach-rockchip | |
parent | Linux 4.6-rc1 (diff) | |
download | linux-26d5192953d88d6231d173281848a1c61f9e5d34.tar.xz linux-26d5192953d88d6231d173281848a1c61f9e5d34.zip |
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.c | 2 |
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); } |