aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2001-11-02 17:28:43 +0000
committerWarner Losh <imp@FreeBSD.org>2001-11-02 17:28:43 +0000
commitb2237d4d5cc32a357a26f7ac8da14b5479c74edc (patch)
tree6aea951e8c9cca6e9da6b3a9e98575fac96b2a93 /usr.sbin
parent198475ebeb8e3c84c3176ea068b5d2df226ad464 (diff)
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>
Notes
Notes: svn path=/head/; revision=85885
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pccard/pccardd/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/pccard/pccardd/file.c b/usr.sbin/pccard/pccardd/file.c
index 0bfcc0b8489f..464381244563 100644
--- a/usr.sbin/pccard/pccardd/file.c
+++ b/usr.sbin/pccard/pccardd/file.c
@@ -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') {