[04/11] ARM: meson: use NULL instead of 0 for pointer
diff mbox series

Message ID 20191008123341.1551-4-ben.dooks@codethink.co.uk
State New
Headers show
Series
  • Untitled series #184305
Related show

Commit Message

Ben Dooks Oct. 8, 2019, 12:33 p.m. UTC
Fix the second argument of of_get_cpu_node which is a pointer
being passed a plain 0 by using NULL instead. Fixes the following
warning:

arch/arm/mach-meson/platsmp.c:40:55: warning: Using plain integer as NULL pointer

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
CC: Kevin Hilman <khilman@baylibre.com>
CC: linux-amlogic@lists.infradead.org
---
 arch/arm/mach-meson/platsmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin Blumenstingl Oct. 8, 2019, 5:26 p.m. UTC | #1
Hi Ben,

thank you for this fix!

On Tue, Oct 8, 2019 at 2:33 PM Ben Dooks <ben.dooks@codethink.co.uk> wrote:
>
> Fix the second argument of of_get_cpu_node which is a pointer
> being passed a plain 0 by using NULL instead. Fixes the following
> warning:
>
> arch/arm/mach-meson/platsmp.c:40:55: warning: Using plain integer as NULL pointer
>
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>


Martin

Patch
diff mbox series

diff --git a/arch/arm/mach-meson/platsmp.c b/arch/arm/mach-meson/platsmp.c
index 4b8ad728bb42..f992c436d3ed 100644
--- a/arch/arm/mach-meson/platsmp.c
+++ b/arch/arm/mach-meson/platsmp.c
@@ -37,7 +37,7 @@  static struct regmap *pmu;
 
 static struct reset_control *meson_smp_get_core_reset(int cpu)
 {
-	struct device_node *np = of_get_cpu_node(cpu, 0);
+	struct device_node *np = of_get_cpu_node(cpu, NULL);
 
 	return of_reset_control_get_exclusive(np, NULL);
 }