[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1458213099-13786-1-git-send-email-peter.griffin@linaro.org>
Date: Thu, 17 Mar 2016 11:11:39 +0000
From: Peter Griffin <peter.griffin@...aro.org>
To: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
heiko@...ech.de
Cc: peter.griffin@...aro.org, patches@...aro.org, lee.jones@...aro.org,
linux-rockchip@...ts.infradead.org
Subject: [PATCH] ARM: Rockchip: Fix use of plain integer as NULL pointer
This fixes the following sparse build warning
mach-rockchip/platsmp.c:68:43: Using plain integer as NULL pointer
Signed-off-by: Peter Griffin <peter.griffin@...aro.org>
---
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);
}
--
1.9.1
Powered by blists - more mailing lists