summaryrefslogtreecommitdiffstats
path: root/sys/arm/at91/at91_ssc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm/at91/at91_ssc.c')
-rw-r--r--sys/arm/at91/at91_ssc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arm/at91/at91_ssc.c b/sys/arm/at91/at91_ssc.c
index 8a32f55..d79020b 100644
--- a/sys/arm/at91/at91_ssc.c
+++ b/sys/arm/at91/at91_ssc.c
@@ -193,16 +193,16 @@ at91_ssc_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_IOPORT,
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;
return;
}
OpenPOWER on IntegriCloud