Message ID | 20191008123341.1551-4-ben.dooks@codethink.co.uk (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | None | expand |
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
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); }
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(-)