Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Ignore EEXIST from devsw_attach. This is not the op...
details: https://anonhg.NetBSD.org/src/rev/0497be990303
branches: trunk
changeset: 753863:0497be990303
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Apr 12 22:29:11 2010 +0000
description:
Ignore EEXIST from devsw_attach. This is not the optimal solution,
but it makes it possible to dynamically create device nodes for
fss before the fss module init runs by allowing to run devsw_attach
earlier.
diffstat:
sys/dev/fss.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r ddb9117f2690 -r 0497be990303 sys/dev/fss.c
--- a/sys/dev/fss.c Mon Apr 12 22:19:17 2010 +0000
+++ b/sys/dev/fss.c Mon Apr 12 22:29:11 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fss.c,v 1.66 2010/04/05 09:30:46 hannken Exp $ */
+/* $NetBSD: fss.c,v 1.67 2010/04/12 22:29:11 pooka Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.66 2010/04/05 09:30:46 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.67 2010/04/12 22:29:11 pooka Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1248,6 +1248,8 @@
}
error = devsw_attach(fss_cd.cd_name,
&fss_bdevsw, &bmajor, &fss_cdevsw, &cmajor);
+ if (error == EEXIST)
+ error = 0;
if (error) {
config_cfattach_detach(fss_cd.cd_name, &fss_ca);
config_cfdriver_detach(&fss_cd);
Home |
Main Index |
Thread Index |
Old Index