aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-09-23 12:21:11 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-09-23 12:21:11 +0000
commit3ad06fbb4664405b70c577a28cfcf91eef8ca50c (patch)
tree7e4f0f9217848c707861187ff3bc7d378853db0f /sys
parentd0c90fe668f21d2ffe90860109759fde8b453eb1 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/cp/if_cp.c13
-rw-r--r--sys/dev/ctau/if_ct.c13
-rw-r--r--sys/dev/cx/if_cx.c13
3 files changed, 0 insertions, 39 deletions
diff --git a/sys/dev/cp/if_cp.c b/sys/dev/cp/if_cp.c
index 85d18360eff4..ec9b73e073c6 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");
diff --git a/sys/dev/ctau/if_ct.c b/sys/dev/ctau/if_ct.c
index a05527c71579..9cc08cd82bc2 100644
--- a/sys/dev/ctau/if_ct.c
+++ b/sys/dev/ctau/if_ct.c
@@ -2338,23 +2338,10 @@ static int ng_ct_disconnect (hook_p hook)
static int ct_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-ISA driver is already in system\n");
- return (ENXIO);
- }
#if __FreeBSD_version >= 500000 && defined NETGRAPH
if (ng_newtype (&typestruct))
printf ("Failed to register ng_ct\n");
diff --git a/sys/dev/cx/if_cx.c b/sys/dev/cx/if_cx.c
index 15a0669e6b44..cd96ece1b841 100644
--- a/sys/dev/cx/if_cx.c
+++ b/sys/dev/cx/if_cx.c
@@ -2789,23 +2789,10 @@ static int ng_cx_disconnect (hook_p hook)
static int cx_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 ("Sigma driver is already in system\n");
- return (EEXIST);
- }
#if __FreeBSD_version >= 500000 && defined NETGRAPH
if (ng_newtype (&typestruct))
printf ("Failed to register ng_cx\n");