diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2007-12-18 09:42:01 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2007-12-18 09:42:01 +0000 |
commit | eac086eb0d0b0e82871b6ba5673bd32ade47b514 (patch) | |
tree | b6072bed6c2bb4b3eac41f47aaae84dee63f2b22 /sys/arch/sgi | |
parent | 757bcdeb76ac3a52b163355506b5f1060c975137 (diff) |
move variable declarations where they belong
prodded by and ok dlg@
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r-- | sys/arch/sgi/dev/power.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sgi/dev/power.c b/sys/arch/sgi/dev/power.c index 0a01f05f2d0..8295fee28de 100644 --- a/sys/arch/sgi/dev/power.c +++ b/sys/arch/sgi/dev/power.c @@ -1,4 +1,4 @@ -/* $OpenBSD: power.c,v 1.2 2007/12/18 08:48:22 jasper Exp $ */ +/* $OpenBSD: power.c,v 1.3 2007/12/18 09:42:00 jasper Exp $ */ /* * Copyright (c) 2007 Jasper Lievisse Adriaanse <jasper@openbsd.org> @@ -80,22 +80,22 @@ power_attach(struct device *parent, struct device *self, void *aux) struct power_softc *sc = (void *)self; struct confargs *ca = aux; int sc_irq; + extern bus_space_handle_t clock_h; + extern bus_space_handle_t mace_h; void *rv = NULL; - printf(": "); - sc->sc_st = ca->ca_iot; sc_irq = ca->ca_intr; + printf(": "); + /* Map subregion to clock address space. */ - extern bus_space_handle_t clock_h; if (bus_space_subregion(sc->sc_st, clock_h, 0, 0x50, &sc->sc_sh)) { printf("failed to map clock address space!\n"); return; } /* Map subregion to ISA control registers. */ - extern bus_space_handle_t mace_h; if (bus_space_subregion(sc->sc_st, mace_h, 0, 0x80, &sc->sc_isash)) { printf("failed to map ISA control registers!\n"); return; |