summaryrefslogtreecommitdiffstats
path: root/sys/dev/cp
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-09-23 12:21:11 +0000
committerphk <phk@FreeBSD.org>2004-09-23 12:21:11 +0000
commitd240df25edbe48c96491200f17cc79a897c8c955 (patch)
tree7e4f0f9217848c707861187ff3bc7d378853db0f /sys/dev/cp
parenta4f5e76f749133b4bf9ff312f3e6afa8c43774b8 (diff)
downloadFreeBSD-src-d240df25edbe48c96491200f17cc79a897c8c955.zip
FreeBSD-src-d240df25edbe48c96491200f17cc79a897c8c955.tar.gz
Remove bogus cdevsw frobbing code which tries to prevent double
loading of modules. MODULE_VERSION() should be used for this I belive.
Diffstat (limited to 'sys/dev/cp')
-rw-r--r--sys/dev/cp/if_cp.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/dev/cp/if_cp.c b/sys/dev/cp/if_cp.c
index 85d1836..ec9b73e 100644
--- a/sys/dev/cp/if_cp.c
+++ b/sys/dev/cp/if_cp.c
@@ -2411,23 +2411,10 @@ static int ng_cp_disconnect (hook_p hook)
static int cp_modevent (module_t mod, int type, void *unused)
{
- struct cdev *dev;
static int load_count = 0;
- struct cdevsw *cdsw;
-#if __FreeBSD_version >= 502103
- dev = findcdev (makedev(CDEV_MAJOR, 0));
-#else
- dev = makedev (CDEV_MAJOR, 0);
-#endif
switch (type) {
case MOD_LOAD:
- if (dev != NULL &&
- (cdsw = devsw (dev)) &&
- cdsw->d_maj == CDEV_MAJOR) {
- printf ("Tau-PCI driver is already in system\n");
- return (ENXIO);
- }
#if __FreeBSD_version >= 500000 && defined NETGRAPH
if (ng_newtype (&typestruct))
printf ("Failed to register ng_cp\n");
OpenPOWER on IntegriCloud