Skip to content

Commit

Permalink
powerpc/85xx: p1022ds: Use NULL instead of 0 for pointers
Browse files Browse the repository at this point in the history
The third argument for of_get_property() is a pointer, hence pass
NULL instead of 0.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Tushar Behera authored and Kumar Gala committed Nov 25, 2012
1 parent cedddd8 commit e9c36b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/85xx/p1022_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ static void p1022ds_set_monitor_port(enum fsl_diu_monitor_port port)
goto exit;
}

iprop = of_get_property(law_node, "fsl,num-laws", 0);
iprop = of_get_property(law_node, "fsl,num-laws", NULL);
if (!iprop) {
pr_err("p1022ds: LAW node is missing fsl,num-laws property\n");
goto exit;
Expand Down

0 comments on commit e9c36b0

Please sign in to comment.