cpufreq: Remove unused devclass arguments to DRIVER_MODULE.
This commit is contained in:
parent
6b66c29886
commit
b3407dcc58
@ -619,7 +619,5 @@ static driver_t cpufreq_dt_driver = {
|
||||
sizeof(struct cpufreq_dt_softc),
|
||||
};
|
||||
|
||||
static devclass_t cpufreq_dt_devclass;
|
||||
|
||||
DRIVER_MODULE(cpufreq_dt, cpu, cpufreq_dt_driver, cpufreq_dt_devclass, 0, 0);
|
||||
DRIVER_MODULE(cpufreq_dt, cpu, cpufreq_dt_driver, 0, 0);
|
||||
MODULE_VERSION(cpufreq_dt, 1);
|
||||
|
@ -117,11 +117,12 @@ static device_method_t ichss_methods[] = {
|
||||
DEVMETHOD(cpufreq_drv_settings, ichss_settings),
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static driver_t ichss_driver = {
|
||||
"ichss", ichss_methods, sizeof(struct ichss_softc)
|
||||
};
|
||||
static devclass_t ichss_devclass;
|
||||
DRIVER_MODULE(ichss, cpu, ichss_driver, ichss_devclass, 0, 0);
|
||||
|
||||
DRIVER_MODULE(ichss, cpu, ichss_driver, 0, 0);
|
||||
|
||||
static device_t ich_device;
|
||||
|
||||
|
@ -71,8 +71,7 @@ static driver_t dfs_driver = {
|
||||
sizeof(struct dfs_softc)
|
||||
};
|
||||
|
||||
static devclass_t dfs_devclass;
|
||||
DRIVER_MODULE(dfs, cpu, dfs_driver, dfs_devclass, 0, 0);
|
||||
DRIVER_MODULE(dfs, cpu, dfs_driver, 0, 0);
|
||||
|
||||
/*
|
||||
* Bits of the HID1 register to enable DFS. See page 2-24 of "MPC7450
|
||||
|
@ -97,8 +97,7 @@ static driver_t mpc85xx_jog_driver = {
|
||||
sizeof(struct mpc85xx_jog_softc)
|
||||
};
|
||||
|
||||
static devclass_t mpc85xx_jog_devclass;
|
||||
DRIVER_MODULE(mpc85xx_jog, cpu, mpc85xx_jog_driver, mpc85xx_jog_devclass, 0, 0);
|
||||
DRIVER_MODULE(mpc85xx_jog, cpu, mpc85xx_jog_driver, 0, 0);
|
||||
|
||||
struct mpc85xx_constraints {
|
||||
int threshold; /* Threshold frequency, in MHz, for setting CORE_SPD bit. */
|
||||
|
@ -74,8 +74,7 @@ static driver_t pcr_driver = {
|
||||
sizeof(struct pcr_softc)
|
||||
};
|
||||
|
||||
static devclass_t pcr_devclass;
|
||||
DRIVER_MODULE(pcr, cpu, pcr_driver, pcr_devclass, 0, 0);
|
||||
DRIVER_MODULE(pcr, cpu, pcr_driver, 0, 0);
|
||||
|
||||
/*
|
||||
* States
|
||||
|
@ -111,8 +111,7 @@ static driver_t pmcr_driver = {
|
||||
sizeof(struct pmcr_softc)
|
||||
};
|
||||
|
||||
static devclass_t pmcr_devclass;
|
||||
DRIVER_MODULE(pmcr, cpu, pmcr_driver, pmcr_devclass, 0, 0);
|
||||
DRIVER_MODULE(pmcr, cpu, pmcr_driver, 0, 0);
|
||||
|
||||
static void
|
||||
pmcr_identify(driver_t *driver, device_t parent)
|
||||
|
@ -79,8 +79,7 @@ static driver_t pmufreq_driver = {
|
||||
sizeof(struct pmufreq_softc)
|
||||
};
|
||||
|
||||
static devclass_t pmufreq_devclass;
|
||||
DRIVER_MODULE(pmufreq, cpu, pmufreq_driver, pmufreq_devclass, 0, 0);
|
||||
DRIVER_MODULE(pmufreq, cpu, pmufreq_driver, 0, 0);
|
||||
|
||||
static void
|
||||
pmufreq_identify(driver_t *driver, device_t parent)
|
||||
|
@ -897,8 +897,7 @@ static driver_t est_driver = {
|
||||
sizeof(struct est_softc),
|
||||
};
|
||||
|
||||
static devclass_t est_devclass;
|
||||
DRIVER_MODULE(est, cpu, est_driver, est_devclass, 0, 0);
|
||||
DRIVER_MODULE(est, cpu, est_driver, 0, 0);
|
||||
MODULE_DEPEND(est, hwpstate_intel, 1, 1, 1);
|
||||
|
||||
static int
|
||||
|
@ -156,14 +156,13 @@ static device_method_t hwpstate_methods[] = {
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
static devclass_t hwpstate_devclass;
|
||||
static driver_t hwpstate_driver = {
|
||||
"hwpstate",
|
||||
hwpstate_methods,
|
||||
sizeof(struct hwpstate_softc),
|
||||
};
|
||||
|
||||
DRIVER_MODULE(hwpstate, cpu, hwpstate_driver, hwpstate_devclass, 0, 0);
|
||||
DRIVER_MODULE(hwpstate, cpu, hwpstate_driver, 0, 0);
|
||||
|
||||
/*
|
||||
* Go to Px-state on all cpus, considering the limit register (if so
|
||||
|
@ -102,15 +102,13 @@ struct hwp_softc {
|
||||
uint8_t low;
|
||||
};
|
||||
|
||||
static devclass_t hwpstate_intel_devclass;
|
||||
static driver_t hwpstate_intel_driver = {
|
||||
"hwpstate_intel",
|
||||
intel_hwpstate_methods,
|
||||
sizeof(struct hwp_softc),
|
||||
};
|
||||
|
||||
DRIVER_MODULE(hwpstate_intel, cpu, hwpstate_intel_driver,
|
||||
hwpstate_intel_devclass, NULL, NULL);
|
||||
DRIVER_MODULE(hwpstate_intel, cpu, hwpstate_intel_driver, NULL, NULL);
|
||||
MODULE_VERSION(hwpstate_intel, 1);
|
||||
|
||||
static bool hwpstate_pkg_ctrl_enable = true;
|
||||
|
@ -106,8 +106,7 @@ static driver_t p4tcc_driver = {
|
||||
sizeof(struct p4tcc_softc),
|
||||
};
|
||||
|
||||
static devclass_t p4tcc_devclass;
|
||||
DRIVER_MODULE(p4tcc, cpu, p4tcc_driver, p4tcc_devclass, 0, 0);
|
||||
DRIVER_MODULE(p4tcc, cpu, p4tcc_driver, 0, 0);
|
||||
|
||||
static int
|
||||
p4tcc_features(driver_t *driver, u_int *features)
|
||||
|
@ -263,14 +263,13 @@ static device_method_t pn_methods[] = {
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
static devclass_t pn_devclass;
|
||||
static driver_t pn_driver = {
|
||||
"powernow",
|
||||
pn_methods,
|
||||
sizeof(struct pn_softc),
|
||||
};
|
||||
|
||||
DRIVER_MODULE(powernow, cpu, pn_driver, pn_devclass, 0, 0);
|
||||
DRIVER_MODULE(powernow, cpu, pn_driver, 0, 0);
|
||||
|
||||
static int
|
||||
pn7_setfidvid(struct pn_softc *sc, int fid, int vid)
|
||||
|
@ -106,8 +106,8 @@ static device_method_t smist_methods[] = {
|
||||
static driver_t smist_driver = {
|
||||
"smist", smist_methods, sizeof(struct smist_softc)
|
||||
};
|
||||
static devclass_t smist_devclass;
|
||||
DRIVER_MODULE(smist, cpu, smist_driver, smist_devclass, 0, 0);
|
||||
|
||||
DRIVER_MODULE(smist, cpu, smist_driver, 0, 0);
|
||||
|
||||
struct piix4_pci_device {
|
||||
uint16_t vendor;
|
||||
|
Loading…
Reference in New Issue
Block a user