aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ichwd/ichwd.c23
-rw-r--r--sys/netsmb/smb_dev.c2
2 files changed, 2 insertions, 23 deletions
diff --git a/sys/dev/ichwd/ichwd.c b/sys/dev/ichwd/ichwd.c
index 71662a5d83ec..78d9816f156d 100644
--- a/sys/dev/ichwd/ichwd.c
+++ b/sys/dev/ichwd/ichwd.c
@@ -465,7 +465,7 @@ ichwd_attach(device_t dev)
if (ichwd_clear_noreboot(sc) != 0)
goto fail;
- device_printf(dev, "%s (ICH%d or equivalent)\n",
+ ichwd_verbose_printf(dev, "%s (ICH%d or equivalent)\n",
device_get_desc(dev), sc->ich_version);
/*
@@ -553,23 +553,4 @@ static driver_t ichwd_driver = {
sizeof(struct ichwd_softc),
};
-static int
-ichwd_modevent(module_t mode, int type, void *data)
-{
- int error = 0;
-
- switch (type) {
- case MOD_LOAD:
- printf("ichwd module loaded\n");
- break;
- case MOD_UNLOAD:
- printf("ichwd module unloaded\n");
- break;
- case MOD_SHUTDOWN:
- printf("ichwd module shutting down\n");
- break;
- }
- return (error);
-}
-
-DRIVER_MODULE(ichwd, isa, ichwd_driver, ichwd_devclass, ichwd_modevent, NULL);
+DRIVER_MODULE(ichwd, isa, ichwd_driver, ichwd_devclass, NULL, NULL);
diff --git a/sys/netsmb/smb_dev.c b/sys/netsmb/smb_dev.c
index 458f4ff23072..8c47498869b7 100644
--- a/sys/netsmb/smb_dev.c
+++ b/sys/netsmb/smb_dev.c
@@ -352,7 +352,6 @@ nsmb_dev_load(module_t mod, int cmd, void *arg)
}
clone_setup(&nsmb_clones);
nsmb_dev_tag = EVENTHANDLER_REGISTER(dev_clone, nsmb_dev_clone, 0, 1000);
- printf("netsmb_dev: loaded\n");
break;
case MOD_UNLOAD:
smb_iod_done();
@@ -363,7 +362,6 @@ nsmb_dev_load(module_t mod, int cmd, void *arg)
drain_dev_clone_events();
clone_cleanup(&nsmb_clones);
destroy_dev_drain(&nsmb_cdevsw);
- printf("netsmb_dev: unloaded\n");
break;
default:
error = EINVAL;