From 1c39700d40e320841bf7504d4a2828a834310739 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sat, 17 Sep 2011 12:23:20 +0000 Subject: use default_chip_unmap for sata_chip_map, lets the via controllers detach ok deraadt@ --- sys/dev/pci/pciide.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; -- cgit v1.2.3