Always set unit number to -1 unless some other unit is specified in

the config file.  This fixes the breakage caused by the recent change
in the behavior of device_add_child for ata (which shows soren's
reservations were well founded).

Submitted by:	OGAWA Takaya <t-ogawa@triaez.kaisei.org>
This commit is contained in:
imp 2001-11-02 17:28:43 +00:00
parent 1ad5da76c9
commit b5e56ba9ba

View File

@ -573,6 +573,7 @@ new_driver(char *name)
drivers = drvp;
drvp->name = newstr(name);
drvp->kernel = newstr(name);
drvp->unit = -1;
p = drvp->kernel;
while (*p++)
if (*p >= '0' && *p <= '9') {