From: Tushar Behera Date: Tue, 20 Nov 2012 04:31:51 +0000 (+0530) Subject: powerpc/85xx: p1022ds: Use NULL instead of 0 for pointers X-Git-Tag: v3.8-rc1~68^2~3^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e9c36b0b09f29f4edefa5bfcbc7247bb8419edce;p=thirdparty%2Fkernel%2Flinux.git powerpc/85xx: p1022ds: Use NULL instead of 0 for pointers The third argument for of_get_property() is a pointer, hence pass NULL instead of 0. Signed-off-by: Tushar Behera Signed-off-by: Kumar Gala --- diff --git a/arch/powerpc/platforms/85xx/p1022_ds.c b/arch/powerpc/platforms/85xx/p1022_ds.c index 8fb12570b2f52..7328b8d741294 100644 --- a/arch/powerpc/platforms/85xx/p1022_ds.c +++ b/arch/powerpc/platforms/85xx/p1022_ds.c @@ -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;