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: 1770361 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 7B72D3FC5A for ; Tue, 20 Nov 2012 04:18:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752681Ab2KTESF (ORCPT ); Mon, 19 Nov 2012 23:18:05 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:40174 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752397Ab2KTESE (ORCPT ); Mon, 19 Nov 2012 23:18:04 -0500 Received: by mail-pa0-f46.google.com with SMTP id bh2so947073pad.19 for ; Mon, 19 Nov 2012 20:18:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=+iD4g2ynpK0ZjTAfpKzLuJIoKo2LkNK/IN5MR3TlAKc=; b=K809akz2UEdKI+FAxPIkTi67NrSTDFRgx0BtojZOTKYo8lygApRHisJmQ7BTumeNPu eM2BjGrAg9SzL65AkBgtSoF0IoD2Iz0yMfDrAV87SqrqYpiVwMBSCb6YcTasYBPrJiCe DJ1uEbFYwFb9fRF9m2/spYFHiC5y+GZ6PiSy9ebrgNzO50+9mkgtMSorxOu1cb9dUIfG 0X+6mIQWy8QCOZBYixxQZueXsZeTUS/3lzEgxKPdKKUWBvnT5PnWYAgeT3nPeKKkKxT5 fSflncpDNnsLXsm4sriul7FVMv8u31mXgg9qn+d1MMEZNkRbPTvI5n32w3I2O11k7Z5W nB7Q== 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: ALoCoQl182DU6DwRUwqdT08Hnmv03lvUMVVnemSHnQphwgDW5b3+1ts8Ip1XQnrY/zwKxSZdNMpV Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org 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; }