Skip to contentSkip to conversation

ARM: imx: irq-common: Include header to avoid sparse warning

PATCH New Fabio Estevam 2 participants 3 messages May 24, 2013 – May 27, 2013

Subsystems (3)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/2 ARM: imx: irq-common: Include header to avoid sparse warning

From: Fabio Estevam <[email protected]>

Fix the following sparse warning:

arch/arm/mach-imx/irq-common.c:24:5: warning: symbol 'mxc_set_irq_fiq' was not declared. Should it be static?

---
 arch/arm/mach-imx/irq-common.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-imx/irq-common.c +1 -0
index 4b34f52..0a920d1 100644
@@ -18,6 +18,7 @@
 
 #include <linux/module.h>
 #include <linux/irq.h>
+#include <linux/platform_data/asoc-imx-ssi.h>
 
 #include "irq-common.h"
 
Signature · 1 line
1.8.1.2
author reviewer
#1 lore raw

PATCH 2/2 ARM: imx: clk: No need to initialize phandle struct

From: Fabio Estevam <[email protected]>

commit 84344b43c (ARM: i.MX5: Allow DT clock providers) introduce the following sparse warning:

arch/arm/mach-imx/clk.c:12:43: warning: Using plain integer as NULL pointer

There is no need to initialize phandle, so remove it.

---
 arch/arm/mach-imx/clk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/clk.c +1 -1
index 53e8788..55bc80a 100644
@@ -9,7 +9,7 @@ DEFINE_SPINLOCK(imx_ccm_lock);
 
 static struct clk * __init imx_obtain_fixed_clock_from_dt(const char *name)
 {
-	struct of_phandle_args phandle = {0};
+	struct of_phandle_args phandle;
 	struct clk *clk = ERR_PTR(-ENODEV);
 	char *path;
 
Signature · 1 line
1.8.1.2