Skip to content

Commit

Permalink
ARM: rockchip: Fix use of plain integer as NULL pointer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Griffin authored and Heiko Stuebner committed Apr 12, 2016
1 parent f55532a commit 26d5192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-rockchip/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 26d5192

Please sign in to comment.