diff options
Diffstat (limited to 'sys/arch/sparc64/dev/creator_mainbus.c')
-rw-r--r-- | sys/arch/sparc64/dev/creator_mainbus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/dev/creator_mainbus.c b/sys/arch/sparc64/dev/creator_mainbus.c index 1b1bbaf17b4..9f0089b405b 100644 --- a/sys/arch/sparc64/dev/creator_mainbus.c +++ b/sys/arch/sparc64/dev/creator_mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: creator_mainbus.c,v 1.4 2002/07/26 16:39:04 jason Exp $ */ +/* $OpenBSD: creator_mainbus.c,v 1.5 2002/12/03 19:25:54 jason Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net), @@ -122,10 +122,10 @@ creator_mainbus_attach(parent, self, aux) return; fail: - if (sc->sc_fbc_h != 0) + if (bus_space_vaddr(sc->sc_bt, sc->sc_fbc_h)) bus_space_unmap(sc->sc_bt, sc->sc_fbc_h, ma->ma_reg[FFB_REG_FBC].ur_len); - if (sc->sc_pixel_h != 0) + if (bus_space_vaddr(sc->sc_bt, sc->sc_pixel_h)) bus_space_unmap(sc->sc_bt, sc->sc_pixel_h, ma->ma_reg[FFB_REG_DFB24].ur_len); } |