From patchwork Tue Nov 20 04:11:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 12955 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 0F76523FC1 for ; Tue, 20 Nov 2012 04:18:06 +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 B0B6BA18903 for ; Tue, 20 Nov 2012 04:18:05 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so7628083iej.11 for ; Mon, 19 Nov 2012 20:18:05 -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=+iD4g2ynpK0ZjTAfpKzLuJIoKo2LkNK/IN5MR3TlAKc=; b=X/Exw1vVlEfLV7CtMYMCFqM2XbUiHhaP0igemLP9oQr6Et2XTJPZPrCKlaQxCePFet TdJqQKnIi1hc4Hg3FBtNvrTYUDDhrAJ2koToLI1SIgJq4/Cw4t9xn8hBhjog7C15hfNF 4v594/Q9WDDTAkIF6xy8Hwobl0bqYGaoP2D3EJxRI5Co0Uy/CVQSB+tr3jaL1L2UbJsg Yn0V0wR0ZFm1qJciODsw8PqjorWJg5nydkfLDxP8pMtgd61O3uoFy3wc5ZVyyMnRBGaF J56Ugw5Og51C6N31jP8b992TCAhAn0EbiL3VTmZeNdIWrnO0Sz9pb8HJXg1CK5knOh49 XBAQ== Received: by 10.43.7.132 with SMTP id oo4mr12885131icb.6.1353385085019; Mon, 19 Nov 2012 20:18:05 -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 n20csp265852igt; Mon, 19 Nov 2012 20:18:04 -0800 (PST) Received: by 10.68.244.6 with SMTP id xc6mr39689614pbc.94.1353385084081; Mon, 19 Nov 2012 20:18:04 -0800 (PST) Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by mx.google.com with ESMTPS id q6si16165919pay.226.2012.11.19.20.18.03 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 20:18:04 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.53 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.160.53; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.53 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-pb0-f53.google.com with SMTP id jt11so3853623pbb.12 for ; Mon, 19 Nov 2012 20:18:03 -0800 (PST) Received: by 10.66.85.66 with SMTP id f2mr4531560paz.56.1353385083553; Mon, 19 Nov 2012 20:18:03 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id i10sm7321849paz.17.2012.11.19.20.17.59 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 20:18:02 -0800 (PST) From: Tushar Behera To: linux-mmc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org Cc: cjb@laptop.org, thomas.abraham@linaro.org, patches@linaro.org Subject: [PATCH] mmc: sdhci-s3c: Use NULL instead of 0 for pointers Date: Tue, 20 Nov 2012 09:41:53 +0530 Message-Id: <1353384713-21969-1-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQlYqxEunVq38gmHdXDWegkUTJSuv2eJjcbzlHQjJWcRcRI4s8DbYmYaBxERBlsNj52aAAKO The third argument for of_get_property() is a pointer, hence pass NULL instead of 0. Fixes following sparse warning. drivers/mmc/host/sdhci-s3c.c:452:48: warning: Using plain integer as NULL pointer drivers/mmc/host/sdhci-s3c.c:457:52: warning: Using plain integer as NULL pointer Signed-off-by: Tushar Behera --- drivers/mmc/host/sdhci-s3c.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c index a54dd5d..80b10f2 100644 --- a/drivers/mmc/host/sdhci-s3c.c +++ b/drivers/mmc/host/sdhci-s3c.c @@ -449,12 +449,12 @@ static int __devinit sdhci_s3c_parse_dt(struct device *dev, return -ENOMEM; /* get the card detection method */ - if (of_get_property(node, "broken-cd", 0)) { + if (of_get_property(node, "broken-cd", NULL)) { pdata->cd_type = S3C_SDHCI_CD_NONE; goto setup_bus; } - if (of_get_property(node, "non-removable", 0)) { + if (of_get_property(node, "non-removable", NULL)) { pdata->cd_type = S3C_SDHCI_CD_PERMANENT; goto setup_bus; }