diff --git a/sys/arch/hpcmips/vr/vrc4172gpio.c b/sys/arch/hpcmips/vr/vrc4172gpio.c index c4856d21fad5..33853b5b7f52 100644 --- a/sys/arch/hpcmips/vr/vrc4172gpio.c +++ b/sys/arch/hpcmips/vr/vrc4172gpio.c @@ -1,4 +1,4 @@ -/* $NetBSD: vrc4172gpio.c,v 1.7 2003/09/26 15:29:22 simonb Exp $ */ +/* $NetBSD: vrc4172gpio.c,v 1.8 2003/10/23 20:25:40 he Exp $ */ /*- * Copyright (c) 2001 TAKEMRUA Shin. All rights reserved. * @@ -29,7 +29,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: vrc4172gpio.c,v 1.7 2003/09/26 15:29:22 simonb Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vrc4172gpio.c,v 1.8 2003/10/23 20:25:40 he Exp $"); #include #include @@ -208,7 +208,7 @@ vrc4172gpio_attach(struct device *parent, struct device *self, void *aux) sc->sc_args = *args; /* structure copy */ bus_space_map(sc->sc_iot, loc[HPCIOIFCF_ADDR], loc[HPCIOIFCF_SIZE], 0 /* no cache */, &sc->sc_ioh); - if (sc->sc_ioh == NULL) { + if (sc->sc_ioh == 0) { printf("%s: can't map bus space\n", sc->sc_dev.dv_xname); return; } diff --git a/sys/arch/hpcmips/vr/vrdsiu_mouse.c b/sys/arch/hpcmips/vr/vrdsiu_mouse.c index 0cc2d82cd5f7..fb24b9097f41 100644 --- a/sys/arch/hpcmips/vr/vrdsiu_mouse.c +++ b/sys/arch/hpcmips/vr/vrdsiu_mouse.c @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: vrdsiu_mouse.c,v 1.4 2003/07/15 02:29:35 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vrdsiu_mouse.c,v 1.5 2003/10/23 20:25:40 he Exp $"); #include #include @@ -139,7 +139,7 @@ vrdsiu_attach(parent, self, aux) bus_space_tag_t iot = va->va_iot; - if (va->va_parent_ioh != NULL) + if (va->va_parent_ioh != 0) res = bus_space_subregion(iot, va->va_parent_ioh, va->va_addr, va->va_size, &sc->sc_ioh); else diff --git a/sys/arch/hpcmips/vr/vrkiu.c b/sys/arch/hpcmips/vr/vrkiu.c index 4eadd9bac852..3d5f86beb78f 100644 --- a/sys/arch/hpcmips/vr/vrkiu.c +++ b/sys/arch/hpcmips/vr/vrkiu.c @@ -1,4 +1,4 @@ -/* $NetBSD: vrkiu.c,v 1.34 2003/07/15 02:29:36 lukem Exp $ */ +/* $NetBSD: vrkiu.c,v 1.35 2003/10/23 20:25:40 he Exp $ */ /*- * Copyright (c) 1999 SASAKI Takesi All rights reserved. @@ -36,7 +36,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: vrkiu.c,v 1.34 2003/07/15 02:29:36 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vrkiu.c,v 1.35 2003/10/23 20:25:40 he Exp $"); #include #include @@ -144,7 +144,7 @@ vrkiuattach(struct device *parent, struct device *self, void *aux) bus_space_tag_t iot = va->va_iot; bus_space_handle_t ioh; - if (va->va_parent_ioh != NULL) + if (va->va_parent_ioh != 0) res = bus_space_subregion(iot, va->va_parent_ioh, va->va_addr, va->va_size, &ioh); else diff --git a/sys/arch/hpcmips/vr/vrpiu.c b/sys/arch/hpcmips/vr/vrpiu.c index c8cc71c982b1..aee8868ddb4b 100644 --- a/sys/arch/hpcmips/vr/vrpiu.c +++ b/sys/arch/hpcmips/vr/vrpiu.c @@ -1,4 +1,4 @@ -/* $NetBSD: vrpiu.c,v 1.29 2003/07/15 02:29:36 lukem Exp $ */ +/* $NetBSD: vrpiu.c,v 1.30 2003/10/23 20:25:40 he Exp $ */ /* * Copyright (c) 1999-2003 TAKEMURA Shin All rights reserved. @@ -33,7 +33,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: vrpiu.c,v 1.29 2003/07/15 02:29:36 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vrpiu.c,v 1.30 2003/10/23 20:25:40 he Exp $"); #include #include @@ -208,7 +208,7 @@ vrpiu_init(struct vrpiu_softc *sc, void *aux) bus_space_tag_t iot = va->va_iot; struct platid_data *p; - if (va->va_parent_ioh != NULL) + if (va->va_parent_ioh != 0) res = bus_space_subregion(iot, va->va_parent_ioh, va->va_addr, va->va_size, &sc->sc_ioh); else @@ -218,7 +218,7 @@ vrpiu_init(struct vrpiu_softc *sc, void *aux) printf(": can't map bus space\n"); return; } - if (va->va_parent_ioh != NULL) + if (va->va_parent_ioh != 0) res = bus_space_subregion(iot, va->va_parent_ioh, va->va_addr2, va->va_size2, &sc->sc_buf_ioh); else