From: Tushar Behera <tushar.behera@linaro.org>
To: linuxppc-dev@lists.ozlabs.org, devicetree-discuss@lists.ozlabs.org
Cc: patches@linaro.org
Subject: [PATCH 1/2] powerpc/85xx: p1022ds: Use NULL instead of 0 for pointers
Date: Tue, 20 Nov 2012 10:01:51 +0530 [thread overview]
Message-ID: <1353385912-25882-1-git-send-email-tushar.behera@linaro.org> (raw)
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>
---
arch/powerpc/platforms/85xx/p1022_ds.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/platforms/85xx/p1022_ds.c b/arch/powerpc/platforms/85xx/p1022_ds.c
index 8fb1257..7328b8d 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;
--
1.7.4.1
next reply other threads:[~2012-11-20 4:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-20 4:31 Tushar Behera [this message]
2012-11-20 4:31 ` [PATCH 2/2] powerpc/pseries: pci: Use NULL instead of 0 for pointers Tushar Behera
2012-11-25 13:07 ` [PATCH 1/2] powerpc/85xx: p1022ds: " Kumar Gala
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1353385912-25882-1-git-send-email-tushar.behera@linaro.org \
--to=tushar.behera@linaro.org \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=patches@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).