From: Peter Griffin Date: Thu, 17 Mar 2016 13:43:11 +0000 (+0000) Subject: ARM: rockchip: Fix use of plain integer as NULL pointer X-Git-Tag: v4.7-rc1~139^2~3^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=26d5192953d88d6231d173281848a1c61f9e5d34;p=karo-tx-linux.git 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 Acked-by: Lee Jones Signed-off-by: Heiko Stuebner --- 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); }