From patchwork Thu Mar 17 13:43:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 64001 Delivered-To: patches@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp476686lbc; Thu, 17 Mar 2016 06:43:15 -0700 (PDT) X-Received: by 10.28.23.70 with SMTP id 67mr847895wmx.70.1458222195121; Thu, 17 Mar 2016 06:43:15 -0700 (PDT) Return-Path: Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com. [2a00:1450:400c:c09::232]) by mx.google.com with ESMTPS id hi5si10261732wjc.236.2016.03.17.06.43.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Mar 2016 06:43:15 -0700 (PDT) Received-SPF: pass (google.com: domain of peter.griffin@linaro.org designates 2a00:1450:400c:c09::232 as permitted sender) client-ip=2a00:1450:400c:c09::232; Authentication-Results: mx.google.com; spf=pass (google.com: domain of peter.griffin@linaro.org designates 2a00:1450:400c:c09::232 as permitted sender) smtp.mailfrom=peter.griffin@linaro.org; dkim=pass header.i=@linaro.org Received: by mail-wm0-x232.google.com with SMTP id p65so26860480wmp.1 for ; Thu, 17 Mar 2016 06:43:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=dPCS/sJ436mixo+3HSskqHqevqCj3Dg8vb24ejk8Dds=; b=koTwO5o/DaK/hbmUz7VGJfrlU/+SzW1Kh+ingfPOnYLDaRxEG9+dEu68M9L0YGDHlM zXwPXmekj99vdB9d1WQdghk0fndcVBQRuejDCza4PewJenSP6d9guk9dXPkprNnW5TzV f/gNlrgh74QeldK38EX5d90aypxuAtx2sCNLs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=dPCS/sJ436mixo+3HSskqHqevqCj3Dg8vb24ejk8Dds=; b=BkVyxJxkCr5Q1/+jvqrgYg/mlMVXSfEwrcY1etqWFJ6pqGveLNUV3xheyQHirNCULY nlPQMarf/5/dcFX/U6gOVo6H+Gw2KidVz3LPe4dD10g/yiq6aIgLcIdnA19ADZBx+DrE mInENKDI2T8MEYMSmqpFatn9hlxiXRUomoAiICKnhULHwphPpY0/KOxSXfTP2kU+ulhj OuSk4JUoohYCVQzo3fZjBAST92xL9yQAwptX0XpK3WwWh6KemWO9bgu1L33dpRJ+TvAr iBRRfe+7KnK2TU8wYzNX2IQp1nI9A0IX9vgZI5TOLwGqCKHsNw/wEeryJWyADT725wTq 1Zdw== X-Gm-Message-State: AD7BkJI31KaTDouXJoCg3EBLkAf40AoF97cpdyIIqG1IwfAfCSaRN7SYdo5gHM1jXA8LQITCJ7Y= X-Received: by 10.28.215.79 with SMTP id o76mr36998056wmg.95.1458222194929; Thu, 17 Mar 2016 06:43:14 -0700 (PDT) Return-Path: Received: from localhost.localdomain (cpc84787-aztw28-2-0-cust15.18-1.cable.virginm.net. [82.37.140.16]) by smtp.gmail.com with ESMTPSA id w10sm2939573wmw.1.2016.03.17.06.43.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Mar 2016 06:43:14 -0700 (PDT) From: Peter Griffin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, heiko@sntech.de Cc: peter.griffin@linaro.org, patches@linaro.org, lee.jones@linaro.org, linux-rockchip@lists.infradead.org Subject: [PATCH v2] ARM: rockchip: Fix use of plain integer as NULL pointer Date: Thu, 17 Mar 2016 13:43:11 +0000 Message-Id: <1458222191-26023-1-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 This fixes the following sparse build warning: mach-rockchip/platsmp.c:68:43: Using plain integer as NULL pointer Signed-off-by: Peter Griffin --- arch/arm/mach-rockchip/platsmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c index d42a07e..4d827a0 100644 --- a/arch/arm/mach-rockchip/platsmp.c +++ b/arch/arm/mach-rockchip/platsmp.c @@ -65,7 +65,7 @@ static struct reset_control *rockchip_get_core_reset(int cpu) if (dev) np = dev->of_node; else - np = of_get_cpu_node(cpu, 0); + np = of_get_cpu_node(cpu, NULL); return of_reset_control_get(np, NULL); }