diff options
Diffstat (limited to 'sys/arch/arm/xscale/pxa2x0_mmc.c')
-rw-r--r-- | sys/arch/arm/xscale/pxa2x0_mmc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0_mmc.c b/sys/arch/arm/xscale/pxa2x0_mmc.c index b8be421d9d4..6451c19677e 100644 --- a/sys/arch/arm/xscale/pxa2x0_mmc.c +++ b/sys/arch/arm/xscale/pxa2x0_mmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pxa2x0_mmc.c,v 1.9 2009/09/03 21:40:29 marex Exp $ */ +/* $OpenBSD: pxa2x0_mmc.c,v 1.10 2011/04/07 15:30:15 miod Exp $ */ /* * Copyright (c) 2007 Uwe Stuehler <uwe@openbsd.org> @@ -203,9 +203,9 @@ fail: pxa2x0_gpio_intr_disestablish(sc->sc_card_ih); sc->sc_card_ih = NULL; } - if (sc->sc_ioh != NULL) { + if (sc->sc_ioh != 0) { bus_space_unmap(sc->sc_iot, sc->sc_ioh, PXA2X0_MMC_SIZE); - sc->sc_ioh = NULL; + sc->sc_ioh = 0; } pxa2x0_clkman_config(CKEN_MMC, 0); } |