Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/isa Improve module dependencies, clean up old #if 0 ...



details:   https://anonhg.NetBSD.org/src/rev/22eae03e9b0d
branches:  trunk
changeset: 772845:22eae03e9b0d
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Wed Jan 18 00:11:43 2012 +0000

description:
Improve module dependencies, clean up old #if 0 code.

diffstat:

 sys/dev/isa/lm_isa_common.c |  14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)

diffs (42 lines):

diff -r 66156c001dbc -r 22eae03e9b0d sys/dev/isa/lm_isa_common.c
--- a/sys/dev/isa/lm_isa_common.c       Tue Jan 17 22:18:54 2012 +0000
+++ b/sys/dev/isa/lm_isa_common.c       Wed Jan 18 00:11:43 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lm_isa_common.c,v 1.2 2012/01/17 17:17:15 jakllsch Exp $ */
+/*     $NetBSD: lm_isa_common.c,v 1.3 2012/01/18 00:11:43 jakllsch Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lm_isa_common.c,v 1.2 2012/01/17 17:17:15 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lm_isa_common.c,v 1.3 2012/01/18 00:11:43 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -59,14 +59,6 @@
        bus_space_handle_t lm_ioh;
 };
 
-#if 0
-CFATTACH_DECL_NEW(lm_isa, sizeof(struct lm_isa_softc),
-    lm_isa_match, lm_isa_attach, lm_isa_detach, NULL);
-
-CFATTACH_DECL_NEW(lm_wbsio, sizeof(struct lm_isa_softc),
-    lm_isa_match, lm_isa_attach, lm_isa_detach, NULL);
-#endif
-
 int
 lm_isa_match(device_t parent, cfdata_t match, void *aux)
 {
@@ -161,7 +153,7 @@
        bus_space_write_1(sc->lm_iot, sc->lm_ioh, LMC_DATA, val);
 }
 
-MODULE(MODULE_CLASS_DRIVER, lm_isa_common, NULL);
+MODULE(MODULE_CLASS_DRIVER, lm_isa_common, "lm");
 
 static int
 lm_isa_common_modcmd(modcmd_t cmd, void *priv)



Home | Main Index | Thread Index | Old Index