summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/atapi.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-09-08 01:31:27 +0000
committerjkh <jkh@FreeBSD.org>1996-09-08 01:31:27 +0000
commitf563f9b5857b086565107d6e4634b4fd0c247e8f (patch)
tree68b84ecb215050a2d6f9914089456d8dab950b04 /sys/i386/isa/atapi.c
parent8a74fcec831b37548dbde84d758f33e7c041a9d7 (diff)
downloadFreeBSD-src-f563f9b5857b086565107d6e4634b4fd0c247e8f.zip
FreeBSD-src-f563f9b5857b086565107d6e4634b4fd0c247e8f.tar.gz
Finish what phk started here in removing devconf. The ATAPI_STATIC case
was still broken, as was the normal case since atapi_attach() was called internally.
Diffstat (limited to 'sys/i386/isa/atapi.c')
-rw-r--r--sys/i386/isa/atapi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/i386/isa/atapi.c b/sys/i386/isa/atapi.c
index 70e7089..8fde197 100644
--- a/sys/i386/isa/atapi.c
+++ b/sys/i386/isa/atapi.c
@@ -134,12 +134,11 @@ struct atapidrv atapi_drvtab[4];
int atapi_ndrv;
struct atapi *atapi_tab;
-int atapi_attach (int ctlr, int unit, int port, struct kern_devconf *parent)
+int atapi_attach (int ctlr, int unit, int port)
{
atapi_drvtab[atapi_ndrv].ctlr = ctlr;
atapi_drvtab[atapi_ndrv].unit = unit;
atapi_drvtab[atapi_ndrv].port = port;
- atapi_drvtab[atapi_ndrv].parent = parent;
atapi_drvtab[atapi_ndrv].attached = 0;
++atapi_ndrv;
return (1);
@@ -979,7 +978,7 @@ static int atapi_load (struct lkm_table *lkmtp, int cmd)
tsleep (&atapi_locked, PRIBIO, "atach", 0);
/* Probe the drive. */
- if (atapi_attach (d->ctlr, d->unit, d->port, d->parent)) {
+ if (atapi_attach (d->ctlr, d->unit, d->port)) {
d->attached = 1;
++n;
}
OpenPOWER on IntegriCloud