diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2011-09-17 12:23:20 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2011-09-17 12:23:20 +0000 |
commit | 1c39700d40e320841bf7504d4a2828a834310739 (patch) | |
tree | 76c0fdc3f8d6694bc4a8f90228c20bf4e56c979b | |
parent | 003c2f7040e170c8089267bedff2f90c0e030902 (diff) |
use default_chip_unmap for sata_chip_map, lets the via controllers detach
ok deraadt@
-rw-r--r-- | sys/dev/pci/pciide.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c index 2626a9791e9..5dd0bfc9627 100644 --- a/sys/dev/pci/pciide.c +++ b/sys/dev/pci/pciide.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pciide.c,v 1.332 2011/07/15 16:44:18 deraadt Exp $ */ +/* $OpenBSD: pciide.c,v 1.333 2011/09/17 12:23:19 jsg Exp $ */ /* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */ /* @@ -2478,6 +2478,7 @@ sata_chip_map(struct pciide_softc *sc, struct pci_attach_args *pa) sc->sc_wdcdev.cap |= WDC_CAPABILITY_DATA16 | WDC_CAPABILITY_DATA32 | WDC_CAPABILITY_MODE | WDC_CAPABILITY_SATA; sc->sc_wdcdev.set_modes = sata_setup_channel; + sc->chip_unmap = default_chip_unmap; for (channel = 0; channel < sc->sc_wdcdev.nchannels; channel++) { cp = &sc->pciide_channels[channel]; |