diff options
Diffstat (limited to 'sys/i386/isa/atapi.c')
-rw-r--r-- | sys/i386/isa/atapi.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/i386/isa/atapi.c b/sys/i386/isa/atapi.c index 8c51d70..4f10d56 100644 --- a/sys/i386/isa/atapi.c +++ b/sys/i386/isa/atapi.c @@ -170,7 +170,7 @@ static int atapi_start_cmd (struct atapi *ata, struct atapicmd *ac); static int atapi_wait_cmd (struct atapi *ata, struct atapicmd *ac); extern int wdstart (int ctrlr); -extern int wcdattach(struct atapi*, int, struct atapi_params*, int, struct kern_devconf*); +extern int wcdattach(struct atapi*, int, struct atapi_params*, int); /* * Probe the ATAPI device at IDE controller `ctlr', drive `unit'. @@ -179,7 +179,7 @@ extern int wcdattach(struct atapi*, int, struct atapi_params*, int, struct kern_ #ifdef ATAPI_MODULE static #endif -int atapi_attach (int ctlr, int unit, int port, struct kern_devconf *parent) +int atapi_attach (int ctlr, int unit, int port) { struct atapi *ata = atapitab + ctlr; struct atapi_params *ap; @@ -241,7 +241,6 @@ int atapi_attach (int ctlr, int unit, int port, struct kern_devconf *parent) ata->port = port; ata->ctrlr = ctlr; - ata->parent = parent; ata->attached[unit] = 0; #ifdef DEBUG ata->debug = 1; @@ -275,7 +274,7 @@ int atapi_attach (int ctlr, int unit, int port, struct kern_devconf *parent) case AT_TYPE_CDROM: /* CD-ROM device */ #if NWCD > 0 /* ATAPI CD-ROM */ - if (wcdattach (ata, unit, ap, ata->debug, parent) < 0) + if (wcdattach (ata, unit, ap, ata->debug) < 0) break; /* Device attached successfully. */ ata->attached[unit] = 1; |