PERFORCE change 153718 for review

Sam Leffler sam at FreeBSD.org
Fri Nov 28 14:28:21 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=153718

Change 153718 by sam at sam_ebb on 2008/11/28 22:28:14

	ath_hal_version and ath_hal_buildopts are gone; also now
	no reason to split driver and hal into separate modules

Affected files ...

.. //depot/projects/vap/sys/dev/ath/ah_osdep.c#7 edit

Differences ...

==== //depot/projects/vap/sys/dev/ath/ah_osdep.c#7 (text+ko) ====

@@ -90,9 +90,6 @@
 TUNABLE_INT("hw.ath.hal.debug", &ath_hal_debug);
 #endif /* AH_DEBUG */
 
-SYSCTL_STRING(_hw_ath_hal, OID_AUTO, version, CTLFLAG_RD, ath_hal_version, 0,
-	"Atheros HAL version");
-
 /* NB: these are deprecated; they exist for now for compatibility */
 int	ath_hal_dma_beacon_response_time = 2;	/* in TU's */
 SYSCTL_INT(_hw_ath_hal, OID_AUTO, dma_brt, CTLFLAG_RW,
@@ -415,37 +412,3 @@
 {
 	return memcpy(dst, src, n);
 }
-
-/*
- * Module glue.
- */
-
-static int
-ath_hal_modevent(module_t mod, int type, void *unused)
-{
-	const char *sep;
-	int i;
-
-	switch (type) {
-	case MOD_LOAD:
-		printf("ath_hal: %s (", ath_hal_version);
-		sep = "";
-		for (i = 0; ath_hal_buildopts[i] != NULL; i++) {
-			printf("%s%s", sep, ath_hal_buildopts[i]);
-			sep = ", ";
-		}
-		printf(")\n");
-		return 0;
-	case MOD_UNLOAD:
-		return 0;
-	}
-	return EINVAL;
-}
-
-static moduledata_t ath_hal_mod = {
-	"ath_hal",
-	ath_hal_modevent,
-	0
-};
-DECLARE_MODULE(ath_hal, ath_hal_mod, SI_SUB_DRIVERS, SI_ORDER_ANY);
-MODULE_VERSION(ath_hal, 1);


More information about the p4-projects mailing list