diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-07-25 19:40:34 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-07-25 19:40:34 +0000 |
commit | f2b5b59297343211abb344a045930f94cb2ef1d2 (patch) | |
tree | febb618bc753f55a4608705a7d4135ff74fa3362 /sys/arch/sparc64/dev/creator_mainbus.c | |
parent | 4856019962726f17251c7acaa06d4b00569dc144 (diff) |
use bus_space_map, not bus_space_map2, and fix failure printf's
Diffstat (limited to 'sys/arch/sparc64/dev/creator_mainbus.c')
-rw-r--r-- | sys/arch/sparc64/dev/creator_mainbus.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc64/dev/creator_mainbus.c b/sys/arch/sparc64/dev/creator_mainbus.c index a6644e7d8b1..69d37adc05e 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.2 2002/06/15 01:32:01 fgsch Exp $ */ +/* $OpenBSD: creator_mainbus.c,v 1.3 2002/07/25 19:40:33 jason Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net), @@ -91,9 +91,9 @@ creator_mainbus_attach(parent, self, aux) goto fail; } - if (bus_space_map2(sc->sc_bt, 0, ma->ma_reg[FFB_REG_DFB24].ur_paddr, - ma->ma_reg[FFB_REG_DFB24].ur_len, 0, NULL, &sc->sc_pixel_h)) { - printf("%s: failed to map dfb24\n", sc->sc_dv.dv_xname); + if (bus_space_map(sc->sc_bt, ma->ma_reg[FFB_REG_DFB24].ur_paddr, + ma->ma_reg[FFB_REG_DFB24].ur_len, 0, &sc->sc_pixel_h)) { + printf(": failed to map dfb24\n"); goto fail; } |