From patchwork Thu Mar 17 11:11:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 8610121 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 67EA1C0553 for ; Thu, 17 Mar 2016 11:12:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 82690202AE for ; Thu, 17 Mar 2016 11:12:33 +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 BF8EB2014A for ; Thu, 17 Mar 2016 11:12:32 +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 1agVqh-0002sW-2s; Thu, 17 Mar 2016 11:12:15 +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 1agVqV-0002ee-RB for linux-rockchip@lists.infradead.org; Thu, 17 Mar 2016 11:12:05 +0000 Received: by mail-wm0-x229.google.com with SMTP id l68so221661345wml.0 for ; Thu, 17 Mar 2016 04:11:43 -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=B38DZ8YQ0C76RcWsguA18fH4AkMjYBIxtqPZ4XdrPgU=; b=bgMOZfrLqNMGAdG54nWLUOoIu0/qnqSMOSqJ7M8Xa4S9VUqQA70/J7btTaB//47xYz /CK09wWl/6btYxBRRH/1J5SACGch86ckB1lgHUkf+GQnAHVUxWzg/0TfR1ijwxGpQbhj +QF7oMt2JGh3w4/ynMSddNtqqHvcn8HUNbZtI= 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=B38DZ8YQ0C76RcWsguA18fH4AkMjYBIxtqPZ4XdrPgU=; b=Jwbv3E6gSiW1ukDjhvWv3JLIa+6Lr9j17HFdIZ3JDXJCg76xhSixVYPQk3ckeA0H9D Wx1PyXxkmugT/kGrNr59j3lwE9hhSy4SQaTtGhxxwB+I5MXEsPVnt8T2n32/7Vctv/br 2+sWzjjlVMRBrKqkjzu/G64PBFVEL4vZ/tJd11ctNKZnpN6qHBkmLfLQx4kJ+IpranWc mBRA8cUe7j27zkf+Sv7Ou2cbAW24cTLQxDMySvXgulA94U4Eqbru0rAwD9EbKz/RWTU4 iKKDC1nrmpLTJL+swOqRdlKFobFwRw6Lkduelna76vjR4QJM3jSRmTHHkB9Fjiy6IHIW wfsQ== X-Gm-Message-State: AD7BkJL5d+eXVxKWxd8aI4Ild9qdi5chB4ArbFwVWm/g7oHbnXCTF8I8XBAbJhfJFvHvjkUp X-Received: by 10.28.232.87 with SMTP id f84mr10418468wmh.56.1458213102254; Thu, 17 Mar 2016 04:11:42 -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 8sm29821259wmk.13.2016.03.17.04.11.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Mar 2016 04:11:41 -0700 (PDT) From: Peter Griffin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, heiko@sntech.de Subject: [PATCH] ARM: Rockchip: Fix use of plain integer as NULL pointer Date: Thu, 17 Mar 2016 11:11:39 +0000 Message-Id: <1458213099-13786-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_041204_273453_DA768F48 X-CRM114-Status: GOOD ( 10.13 ) 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); }