diff options
Diffstat (limited to 'sys/dev/cx/if_cx.c')
-rw-r--r-- | sys/dev/cx/if_cx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cx/if_cx.c b/sys/dev/cx/if_cx.c index 45c7f9e..b6b55c7 100644 --- a/sys/dev/cx/if_cx.c +++ b/sys/dev/cx/if_cx.c @@ -3177,13 +3177,13 @@ static int cx_modevent (module_t mod, int type, void *unused) struct cdevsw *cdsw; #if __FreeBSD_version >= 502103 - dev = udev2dev (makeudev(CDEV_MAJOR, 0)); + dev = findcdev (makedev(CDEV_MAJOR, 0)); #else dev = makedev (CDEV_MAJOR, 0); #endif switch (type) { case MOD_LOAD: - if (dev != NODEV && + if (dev != NULL && (cdsw = devsw (dev)) && cdsw->d_maj == CDEV_MAJOR) { printf ("Sigma driver is already in system\n"); |