From 5e61c76f6e5fb43e057a799591d2e8d5a6293e9a Mon Sep 17 00:00:00 2001 From: Anton Vorontsov Date: Tue, 11 Mar 2008 20:24:50 +0300 Subject: [PATCH] --- yaml --- r: 91589 b: refs/heads/master c: 632395e19c9268bb15a5022b8e0c6b645a1937d7 h: refs/heads/master i: 91587: c9488ee666c40d6b7ba6c91166776cf1d40747be v: v3 --- [refs] | 2 +- trunk/arch/powerpc/sysdev/qe_lib/qe_io.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index f6ad8d6c6309..7955a389b261 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7f0a6fc81213b957714dfd2a49a28b110283ecc8 +refs/heads/master: 632395e19c9268bb15a5022b8e0c6b645a1937d7 diff --git a/trunk/arch/powerpc/sysdev/qe_lib/qe_io.c b/trunk/arch/powerpc/sysdev/qe_lib/qe_io.c index 736c1fcc9503..93916a48afec 100644 --- a/trunk/arch/powerpc/sysdev/qe_lib/qe_io.c +++ b/trunk/arch/powerpc/sysdev/qe_lib/qe_io.c @@ -22,6 +22,7 @@ #include #include +#include #include #include @@ -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; }