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: 8611051 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 475EE9F3D1 for ; Thu, 17 Mar 2016 13:43:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6AB4B20304 for ; Thu, 17 Mar 2016 13:43:55 +0000 (UTC) Received: from bombadil.infradead.org (unknown [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 95E1D201F5 for ; Thu, 17 Mar 2016 13:43:54 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1agYDD-0003QZ-3p; Thu, 17 Mar 2016 13:43:39 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1agYDA-0003JW-Am for linux-rockchip@lists.infradead.org; Thu, 17 Mar 2016 13:43:37 +0000 Received: by mail-wm0-x229.google.com with SMTP id l124so85677594wmf.1 for ; Thu, 17 Mar 2016 06:43:16 -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=O4b5CTVSwsMau4idCnqMro7FMPRdiXlldihsK8LAyKW86GrL9trxRaOXDFqEJBFTQG zgcVrAMBhxAoxKqMitoiUjx4O7RRs/xRjcv9da91NJBomaDvZDP/QUIMo1U3zLzw6P4q iAq2L2za+JvQQvKxfn1JPq0FRgHX6Lbj/HLDMLHnK1Vhd+FjumqmiTeJigsrrUrPI4th 9n2NuFG8QhlujkJ0N8RwlTWNi675nw8TzgNqi8DOmIhQ9+KQEBLWX7HYLAHfnDxPE8Eb QmCFd7fC9VPZ6WHYWg8IIHxL69vxSPYuewqQdP6ig16WQ8yT5dAzEwzktIOOzIdXZof6 EB8Q== X-Gm-Message-State: AD7BkJJXzALByKQ/nAO9ScvElGDuEMP5ws8E9Ipm+ZatlmR8Ya20Ce7k7ONJjuIyJi7OM1i5 X-Received: by 10.28.215.79 with SMTP id o76mr36998056wmg.95.1458222194929; Thu, 17 Mar 2016 06:43:14 -0700 (PDT) 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160317_064336_543616_3CFFB63A X-CRM114-Status: GOOD ( 10.41 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.griffin@linaro.org, linux-rockchip@lists.infradead.org, lee.jones@linaro.org, patches@linaro.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, RDNS_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This fixes the following sparse build warning: mach-rockchip/platsmp.c:68:43: Using plain integer as NULL pointer Signed-off-by: Peter Griffin Acked-by: Lee Jones --- arch/arm/mach-rockchip/platsmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }