From patchwork Tue Nov 20 04:31:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 12956 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 0779D23E01 for ; Tue, 20 Nov 2012 04:38:08 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id A7DFEA18E89 for ; Tue, 20 Nov 2012 04:38:07 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so7642708iej.11 for ; Mon, 19 Nov 2012 20:38:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=hIReuVxsdScQ94Uv8oeq+zqQew/TACZnXcfwG1s5j+E=; b=dxyyAJTGAuS5+9wYNxscQDKsmDFUJrHhlS9mXeYBFo9WN+2xMASxhuaaCs9wNqvUYk f0k+p6leJpCG1kPWze77CbXFsTR7dLeyQnCk6aH7SQqmlaAu2anbjVtzRx1X6ybErGr0 f2CVNdlgKY1cmzhEAC87v2GnBladHkP7KhZ/TzjE9UVznDWwCQ9HdF1hi0iD+h7jOuf7 erPE5rJSryJrZ8IQph00Wlh6C2w7dPnf7gXRTMbYikg+MQvOrndhJZMoCaF6CI8XGgEH 3J5FapNcBQO0leDwD4eKJU2YAnA50yfrU55vzfg/rNxgsCnSnklUeBaLsKKFLjRlSEs8 nSqw== Received: by 10.50.173.34 with SMTP id bh2mr8693436igc.70.1353386287068; Mon, 19 Nov 2012 20:38:07 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp267423igt; Mon, 19 Nov 2012 20:38:06 -0800 (PST) Received: by 10.68.238.34 with SMTP id vh2mr39808773pbc.6.1353386286333; Mon, 19 Nov 2012 20:38:06 -0800 (PST) Received: from mail-da0-f52.google.com (mail-da0-f52.google.com [209.85.210.52]) by mx.google.com with ESMTPS id zo3si16623629pbc.90.2012.11.19.20.38.05 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 20:38:06 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.52 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.210.52; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.52 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by mail-da0-f52.google.com with SMTP id f10so2833421dak.39 for ; Mon, 19 Nov 2012 20:38:05 -0800 (PST) Received: by 10.69.1.9 with SMTP id bc9mr45270429pbd.61.1353386285784; Mon, 19 Nov 2012 20:38:05 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pu4sm7355288pbb.72.2012.11.19.20.38.02 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 20:38:04 -0800 (PST) From: Tushar Behera To: linuxppc-dev@lists.ozlabs.org, devicetree-discuss@lists.ozlabs.org Cc: galak@kernel.crashing.org, 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 Message-Id: <1353385912-25882-1-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQnjSB875+rUbofX+LqJ/Nj2DyhoU1vTF9T4L64NoQJiBBxdANuqZAb8zrDLJwWwUn318kVb The third argument for of_get_property() is a pointer, hence pass NULL instead of 0. Signed-off-by: Tushar Behera --- 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;