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: 63988 Delivered-To: patches@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp393890lbc; Thu, 17 Mar 2016 04:11:43 -0700 (PDT) X-Received: by 10.28.132.17 with SMTP id g17mr36820278wmd.63.1458213102754; Thu, 17 Mar 2016 04:11:42 -0700 (PDT) Return-Path: Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com. [2a00:1450:400c:c09::22b]) by mx.google.com with ESMTPS id g16si2096616wjn.102.2016.03.17.04.11.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Mar 2016 04:11:42 -0700 (PDT) Received-SPF: pass (google.com: domain of peter.griffin@linaro.org designates 2a00:1450:400c:c09::22b as permitted sender) client-ip=2a00:1450:400c:c09::22b; Authentication-Results: mx.google.com; spf=pass (google.com: domain of peter.griffin@linaro.org designates 2a00:1450:400c:c09::22b as permitted sender) smtp.mailfrom=peter.griffin@linaro.org; dkim=pass header.i=@linaro.org Received: by mail-wm0-x22b.google.com with SMTP id l68so111821760wml.1 for ; Thu, 17 Mar 2016 04:11:42 -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=HHCO200vVmz3coUjjdlKIxnJVYfBA7EOv4xhq8BAbfSRAeyHOgn73OjaZedth3GyZo I+v9Z3TT5MHqUKyZPfRNPFgsyrI9WaKxqdBgQYcSXN6DzJ2WPGl+sO7GDlFpm/foYCkq kQLsUegfh4+klalD8lgT9jCtMuuOvRII9AXzmoItye0dinqzMEtomeNs+hDU6HXWjreH tq8S5pqGrfbzouKElW4QYzTubxxgA1hDmoqVtJjE+m7N5KkvMk1STBdAP7EjKjI+9s5s l9tIvkJo3n/wqzostmWVXe6kxq7BWJ9uy2cU8iFYhu9dSpSGSpW4QB7A7G/PC28JeQKn ul7g== X-Gm-Message-State: AD7BkJJssdMnJobnOzAXr3BJUYqgWwNGo0BJyj7c/XIjQ9qf2jOSWGj4RBxehOPhggvTG9DhCPg= X-Received: by 10.28.232.87 with SMTP id f84mr10418468wmh.56.1458213102254; Thu, 17 Mar 2016 04:11:42 -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 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 Cc: peter.griffin@linaro.org, patches@linaro.org, lee.jones@linaro.org, linux-rockchip@lists.infradead.org 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 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 Acked-by: Lee Jones 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); }