diff options
| author | drochner <drochner@NetBSD.org> | 2005-07-07 17:51:31 +0000 |
|---|---|---|
| committer | drochner <drochner@NetBSD.org> | 2005-07-07 17:51:31 +0000 |
| commit | a8dbed44ea608c2e85b5ad7b207c37cff5ca0602 (patch) | |
| tree | d3e9f38055449bd7b04c27c4aae06539e055665e /sys/dev/ata | |
| parent | 4a286e2d41128b014b52d408ac5fff0a70e36289 (diff) | |
tighten the autoconf constraints by passing the atapi/ata/ata_hl attribute
to config_found()
(after some cleanup we might be able to kill SCSIPI_BUSTYPE_*)
Diffstat (limited to 'sys/dev/ata')
| -rw-r--r-- | sys/dev/ata/ata.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/dev/ata/ata.c b/sys/dev/ata/ata.c index 02d18deb273..1a6b6127b1d 100644 --- a/sys/dev/ata/ata.c +++ b/sys/dev/ata/ata.c @@ -1,4 +1,4 @@ -/* $NetBSD: ata.c,v 1.70 2005/05/29 22:11:28 christos Exp $ */ +/* $NetBSD: ata.c,v 1.71 2005/07/07 17:51:31 drochner Exp $ */ /* * Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.70 2005/05/29 22:11:28 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.71 2005/07/07 17:51:31 drochner Exp $"); #ifndef ATADEBUG #define ATADEBUG @@ -161,7 +161,8 @@ ata_channel_attach(struct ata_channel *chp) chp->ch_queue->queue_flags = 0; chp->ch_queue->active_xfer = NULL; - chp->atabus = config_found(&chp->ch_atac->atac_dev, chp, atabusprint); + chp->atabus = config_found_ia(&chp->ch_atac->atac_dev, "ata", chp, + atabusprint); } static void @@ -235,8 +236,8 @@ atabusconfig(struct atabus_softc *atabus_sc) adev.adev_channel = chp->ch_channel; adev.adev_openings = 1; adev.adev_drv_data = &chp->ch_drive[i]; - chp->ata_drives[i] = config_found(&atabus_sc->sc_dev, - &adev, ataprint); + chp->ata_drives[i] = config_found_ia(&atabus_sc->sc_dev, + "ata_hl", &adev, ataprint); if (chp->ata_drives[i] != NULL) ata_probe_caps(&chp->ch_drive[i]); else { |
