summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/modconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/os/modconf.c')
-rw-r--r--usr/src/uts/common/os/modconf.c50
1 files changed, 1 insertions, 49 deletions
diff --git a/usr/src/uts/common/os/modconf.c b/usr/src/uts/common/os/modconf.c
index cf25d86183..c96d792aff 100644
--- a/usr/src/uts/common/os/modconf.c
+++ b/usr/src/uts/common/os/modconf.c
@@ -19,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -56,7 +56,6 @@
#include <sys/brand.h>
#include <sys/cpc_pcbe.h>
#include <sys/kstat.h>
-#include <sys/fs/sdev_node.h>
#include <sys/socketvar.h>
#include <sys/kiconv.h>
@@ -229,17 +228,6 @@ struct mod_ops mod_dacfops = {
};
/*
- * /dev fs modules
- */
-static int mod_infodev(struct modldev *, struct modlinkage *, int *);
-static int mod_installdev(struct modldev *, struct modlinkage *);
-static int mod_removedev(struct modldev *, struct modlinkage *);
-
-struct mod_ops mod_devfsops = {
- mod_installdev, mod_removedev, mod_infodev
-};
-
-/*
* PCBE (Performance Counter BackEnd) modules.
*/
static int mod_installpcbe(struct modlpcbe *, struct modlinkage *);
@@ -545,42 +533,6 @@ mod_removebrand(struct modlbrand *modl, struct modlinkage *modlp)
}
/*
- * manage /dev fs modules
- */
-/*ARGSUSED*/
-static int
-mod_infodev(struct modldev *modl, struct modlinkage *modlp, int *p0)
-{
- if (mod_getctl(modlp) == NULL) {
- *p0 = -1;
- return (0); /* module is not yet installed */
- }
-
- *p0 = 0;
- return (0);
-}
-
-static int
-mod_installdev(struct modldev *modl, struct modlinkage *modlp)
-{
- struct modctl *mcp;
-
- if ((mcp = mod_getctl(modlp)) == NULL)
- return (EINVAL);
- return (sdev_module_register(mcp->mod_modname, modl->dev_ops));
-}
-
-/*
- * /dev modules are not unloadable.
- */
-/*ARGSUSED*/
-static int
-mod_removedev(struct modldev *modl, struct modlinkage *modlp)
-{
- return (EBUSY);
-}
-
-/*
* Install a new driver
*/
static int