diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-04-29 21:39:35 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-04-29 21:39:35 +0000 |
commit | 5b6f51120e9295cc52f7fe84b01298cbc173afb8 (patch) | |
tree | 82f87d2419fdba1780b55188a19a09abd2cdaaac /sys/dev/pci | |
parent | 7b778aa2455879c1d86c006e363ced82681144f1 (diff) |
- remove last vestige of "old autoconf": dc_unit is dead, long live dv_xname
- remove a bunch of #if 0 stuff (most of which referred to dc_unit, grr)
- delay a bzero until necessary
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_dc_pci.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/dev/pci/if_dc_pci.c b/sys/dev/pci/if_dc_pci.c index 5b02d14980d..31138c643c2 100644 --- a/sys/dev/pci/if_dc_pci.c +++ b/sys/dev/pci/if_dc_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_dc_pci.c,v 1.35 2003/04/19 11:54:02 henning Exp $ */ +/* $OpenBSD: if_dc_pci.c,v 1.36 2003/04/29 21:39:34 jason Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -165,9 +165,6 @@ void dc_pci_acpi(self, aux) struct pci_attach_args *pa = (struct pci_attach_args *)aux; pci_chipset_tag_t pc = pa->pa_pc; u_int32_t r, cptr; - int unit; - - unit = sc->dc_unit; /* Find the location of the capabilities block */ cptr = pci_conf_read(pc, pa->pa_tag, DC_PCI_CCAP) & 0xFF; @@ -185,8 +182,9 @@ void dc_pci_acpi(self, aux) irq = pci_conf_read(pc, pa->pa_tag, DC_PCI_CFIT); /* Reset the power state. */ - printf("dc%d: chip is in D%d power mode " - "-- setting to D0\n", unit, r & DC_PSTATE_D3); + printf("%s: chip is in D%d power mode " + "-- setting to D0\n", sc->sc_dev.dv_xname, + r & DC_PSTATE_D3); r &= 0xFFFFFFFC; pci_conf_write(pc, pa->pa_tag, cptr + 4, r); @@ -221,7 +219,6 @@ void dc_pci_attach(parent, self, aux) s = splimp(); sc->sc_dmat = pa->pa_dmat; - sc->dc_unit = sc->sc_dev.dv_unit; /* * Handle power management nonsense. |