remove module glue, it's not used any more
This commit is contained in:
parent
ff054fe639
commit
34b8d7d479
@ -51,7 +51,6 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <sys/module.h>
|
|
||||||
#include <sys/kernel.h>
|
#include <sys/kernel.h>
|
||||||
#include <sys/lock.h>
|
#include <sys/lock.h>
|
||||||
#include <sys/mutex.h>
|
#include <sys/mutex.h>
|
||||||
@ -434,29 +433,3 @@ ath_rate_detach(struct ath_ratectrl *arc)
|
|||||||
|
|
||||||
free(asc, M_DEVBUF);
|
free(asc, M_DEVBUF);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Module glue.
|
|
||||||
*/
|
|
||||||
static int
|
|
||||||
amrr_modevent(module_t mod, int type, void *unused)
|
|
||||||
{
|
|
||||||
switch (type) {
|
|
||||||
case MOD_LOAD:
|
|
||||||
if (bootverbose)
|
|
||||||
printf("ath_rate: <AMRR rate control algorithm> version 0.1\n");
|
|
||||||
return 0;
|
|
||||||
case MOD_UNLOAD:
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
return EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static moduledata_t amrr_mod = {
|
|
||||||
"ath_rate",
|
|
||||||
amrr_modevent,
|
|
||||||
0
|
|
||||||
};
|
|
||||||
DECLARE_MODULE(ath_rate, amrr_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
|
|
||||||
MODULE_VERSION(ath_rate, 1);
|
|
||||||
MODULE_DEPEND(ath_rate, wlan, 1, 1, 1);
|
|
||||||
|
@ -39,7 +39,6 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <sys/module.h>
|
|
||||||
#include <sys/kernel.h>
|
#include <sys/kernel.h>
|
||||||
#include <sys/lock.h>
|
#include <sys/lock.h>
|
||||||
#include <sys/mutex.h>
|
#include <sys/mutex.h>
|
||||||
@ -403,29 +402,3 @@ ath_rate_detach(struct ath_ratectrl *arc)
|
|||||||
|
|
||||||
free(osc, M_DEVBUF);
|
free(osc, M_DEVBUF);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Module glue.
|
|
||||||
*/
|
|
||||||
static int
|
|
||||||
onoe_modevent(module_t mod, int type, void *unused)
|
|
||||||
{
|
|
||||||
switch (type) {
|
|
||||||
case MOD_LOAD:
|
|
||||||
if (bootverbose)
|
|
||||||
printf("ath_rate: <Atsushi Onoe's rate control algorithm>\n");
|
|
||||||
return 0;
|
|
||||||
case MOD_UNLOAD:
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
return EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static moduledata_t onoe_mod = {
|
|
||||||
"ath_rate",
|
|
||||||
onoe_modevent,
|
|
||||||
0
|
|
||||||
};
|
|
||||||
DECLARE_MODULE(ath_rate, onoe_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
|
|
||||||
MODULE_VERSION(ath_rate, 1);
|
|
||||||
MODULE_DEPEND(ath_rate, wlan, 1, 1, 1);
|
|
||||||
|
@ -47,7 +47,6 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <sys/module.h>
|
|
||||||
#include <sys/kernel.h>
|
#include <sys/kernel.h>
|
||||||
#include <sys/lock.h>
|
#include <sys/lock.h>
|
||||||
#include <sys/mutex.h>
|
#include <sys/mutex.h>
|
||||||
@ -993,29 +992,3 @@ ath_rate_detach(struct ath_ratectrl *arc)
|
|||||||
|
|
||||||
free(ssc, M_DEVBUF);
|
free(ssc, M_DEVBUF);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Module glue.
|
|
||||||
*/
|
|
||||||
static int
|
|
||||||
sample_modevent(module_t mod, int type, void *unused)
|
|
||||||
{
|
|
||||||
switch (type) {
|
|
||||||
case MOD_LOAD:
|
|
||||||
if (bootverbose)
|
|
||||||
printf("ath_rate: version 1.9 <SampleRate bit-rate selection algorithm>\n");
|
|
||||||
return 0;
|
|
||||||
case MOD_UNLOAD:
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
return EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static moduledata_t sample_mod = {
|
|
||||||
"ath_rate",
|
|
||||||
sample_modevent,
|
|
||||||
0
|
|
||||||
};
|
|
||||||
DECLARE_MODULE(ath_rate, sample_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
|
|
||||||
MODULE_VERSION(ath_rate, 1);
|
|
||||||
MODULE_DEPEND(ath_rate, wlan, 1, 1, 1);
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user