diff options
author | Nick Hibma <n_hibma@FreeBSD.org> | 2009-09-10 18:33:08 +0000 |
---|---|---|
committer | Nick Hibma <n_hibma@FreeBSD.org> | 2009-09-10 18:33:08 +0000 |
commit | 9ee1df0ce5c6c0cb33c1e031caae6b41a95cc6fa (patch) | |
tree | b895d2498d581d2c943b856ae09d7afbe21d22dc /sys/dev/ichwd/ichwd.c | |
parent | b22692bd0a3865d1fdfb77d1b303c6abe0127143 (diff) | |
download | src-9ee1df0ce5c6c0cb33c1e031caae6b41a95cc6fa.tar.gz src-9ee1df0ce5c6c0cb33c1e031caae6b41a95cc6fa.zip |
Don't print out a message on loading a module. 'kldload -v' and 'kldstat
| grep <modname>' can be used instead.
Put a message behind bootverbose as
ichwd0: <Intel ICH6M watchdog timer> on isa0
ichwd0: Intel ICH6M watchdog timer (ICH6 or equivalent)
does not make a lot of sense.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=197072
Diffstat (limited to 'sys/dev/ichwd/ichwd.c')
-rw-r--r-- | sys/dev/ichwd/ichwd.c | 23 |
1 files changed, 2 insertions, 21 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); |