summaryrefslogtreecommitdiffstats
path: root/sys/arm/at91/at91_pio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm/at91/at91_pio.c')
-rw-r--r--sys/arm/at91/at91_pio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arm/at91/at91_pio.c b/sys/arm/at91/at91_pio.c
index 0de46c5..0d9bd46 100644
--- a/sys/arm/at91/at91_pio.c
+++ b/sys/arm/at91/at91_pio.c
@@ -240,16 +240,16 @@ at91_pio_deactivate(device_t dev)
sc = device_get_softc(dev);
if (sc->intrhand)
bus_teardown_intr(dev, sc->irq_res, sc->intrhand);
- sc->intrhand = 0;
+ sc->intrhand = NULL;
bus_generic_detach(sc->dev);
if (sc->mem_res)
bus_release_resource(dev, SYS_RES_MEMORY,
rman_get_rid(sc->mem_res), sc->mem_res);
- sc->mem_res = 0;
+ sc->mem_res = NULL;
if (sc->irq_res)
bus_release_resource(dev, SYS_RES_IRQ,
rman_get_rid(sc->irq_res), sc->irq_res);
- sc->irq_res = 0;
+ sc->irq_res = NULL;
}
static void
OpenPOWER on IntegriCloud