Commit 632395e1 authored by Anton Vorontsov's avatar Anton Vorontsov Committed by Kumar Gala

[POWERPC] QE: fix sparse warnings

Signed-off-by: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 7f0a6fc8
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <linux/ioport.h> #include <linux/ioport.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/qe.h>
#include <asm/prom.h> #include <asm/prom.h>
#include <sysdev/fsl_soc.h> #include <sysdev/fsl_soc.h>
...@@ -41,7 +42,7 @@ struct port_regs { ...@@ -41,7 +42,7 @@ struct port_regs {
#endif #endif
}; };
static struct port_regs *par_io = NULL; static struct port_regs __iomem *par_io;
static int num_par_io_ports = 0; static int num_par_io_ports = 0;
int par_io_init(struct device_node *np) int par_io_init(struct device_node *np)
...@@ -165,7 +166,7 @@ int par_io_of_config(struct device_node *np) ...@@ -165,7 +166,7 @@ int par_io_of_config(struct device_node *np)
} }
ph = of_get_property(np, "pio-handle", NULL); ph = of_get_property(np, "pio-handle", NULL);
if (ph == 0) { if (ph == NULL) {
printk(KERN_ERR "pio-handle not available \n"); printk(KERN_ERR "pio-handle not available \n");
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment