]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] QE: fix sparse warnings
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Tue, 11 Mar 2008 17:24:50 +0000 (20:24 +0300)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 17 Apr 2008 06:01:39 +0000 (01:01 -0500)
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/qe_lib/qe_io.c

index 736c1fcc9503985349d172b2b9ff8d6ad0f03122..93916a48afec56578acb3f403fe1034b0d0846e4 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/ioport.h>
 
 #include <asm/io.h>
+#include <asm/qe.h>
 #include <asm/prom.h>
 #include <sysdev/fsl_soc.h>
 
@@ -41,7 +42,7 @@ struct port_regs {
 #endif
 };
 
-static struct port_regs *par_io = NULL;
+static struct port_regs __iomem *par_io;
 static int num_par_io_ports = 0;
 
 int par_io_init(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);
-       if (ph == 0) {
+       if (ph == NULL) {
                printk(KERN_ERR "pio-handle not available \n");
                return -1;
        }