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:
parent
1ad5da76c9
commit
b5e56ba9ba
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user