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>
This commit is contained in:
Peter Griffin 2016-03-17 13:43:11 +00:00 committed by Heiko Stuebner
parent f55532a0c0
commit 26d5192953
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}