mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
ppbus/ppc: Remove unused devclass arguments to DRIVER_MODULE.
This commit is contained in:
parent
c59820837c
commit
6d5880906e
13 changed files with 14 additions and 27 deletions
|
|
@ -185,8 +185,6 @@ static int lp_module_handler(module_t, int, void *);
|
|||
#define DEVTOSOFTC(dev) \
|
||||
((struct lp_data *)device_get_softc(dev))
|
||||
|
||||
static devclass_t lp_devclass;
|
||||
|
||||
static int
|
||||
lp_module_handler(module_t mod, int what, void *arg)
|
||||
{
|
||||
|
|
@ -849,5 +847,5 @@ static driver_t lp_driver = {
|
|||
sizeof(struct lp_data),
|
||||
};
|
||||
|
||||
DRIVER_MODULE(plip, ppbus, lp_driver, lp_devclass, lp_module_handler, 0);
|
||||
DRIVER_MODULE(plip, ppbus, lp_driver, lp_module_handler, NULL);
|
||||
MODULE_DEPEND(plip, ppbus, 1, 1, 1);
|
||||
|
|
|
|||
|
|
@ -238,8 +238,6 @@ lpbb_reset(device_t dev, u_char speed, u_char addr, u_char * oldaddr)
|
|||
return (IIC_ENOADDR);
|
||||
}
|
||||
|
||||
static devclass_t lpbb_devclass;
|
||||
|
||||
static device_method_t lpbb_methods[] = {
|
||||
/* device interface */
|
||||
DEVMETHOD(device_identify, lpbb_identify),
|
||||
|
|
@ -263,7 +261,7 @@ static driver_t lpbb_driver = {
|
|||
1,
|
||||
};
|
||||
|
||||
DRIVER_MODULE(lpbb, ppbus, lpbb_driver, lpbb_devclass, 0, 0);
|
||||
DRIVER_MODULE(lpbb, ppbus, lpbb_driver, 0, 0);
|
||||
DRIVER_MODULE(iicbb, lpbb, iicbb_driver, 0, 0);
|
||||
MODULE_DEPEND(lpbb, ppbus, 1, 1, 1);
|
||||
MODULE_DEPEND(lpbb, iicbb, IICBB_MINVER, IICBB_PREFVER, IICBB_MAXVER);
|
||||
|
|
|
|||
|
|
@ -149,8 +149,6 @@ static int lpt_detect(device_t dev);
|
|||
|
||||
static void lptintr(void *arg);
|
||||
|
||||
static devclass_t lpt_devclass;
|
||||
|
||||
/* bits for state */
|
||||
#define OPEN (1<<0) /* device is open */
|
||||
#define ASLP (1<<1) /* awaiting draining of printer */
|
||||
|
|
@ -996,5 +994,5 @@ static driver_t lpt_driver = {
|
|||
sizeof(struct lpt_data),
|
||||
};
|
||||
|
||||
DRIVER_MODULE(lpt, ppbus, lpt_driver, lpt_devclass, 0, 0);
|
||||
DRIVER_MODULE(lpt, ppbus, lpt_driver, 0, 0);
|
||||
MODULE_DEPEND(lpt, ppbus, 1, 1, 1);
|
||||
|
|
|
|||
|
|
@ -58,8 +58,6 @@ struct pcfclock_data {
|
|||
struct cdev *cdev;
|
||||
};
|
||||
|
||||
static devclass_t pcfclock_devclass;
|
||||
|
||||
static d_open_t pcfclock_open;
|
||||
static d_close_t pcfclock_close;
|
||||
static d_read_t pcfclock_read;
|
||||
|
|
@ -334,4 +332,4 @@ static driver_t pcfclock_driver = {
|
|||
sizeof(struct pcfclock_data),
|
||||
};
|
||||
|
||||
DRIVER_MODULE(pcfclock, ppbus, pcfclock_driver, pcfclock_devclass, 0, 0);
|
||||
DRIVER_MODULE(pcfclock, ppbus, pcfclock_driver, 0, 0);
|
||||
|
|
|
|||
|
|
@ -575,8 +575,6 @@ ppb_release_bus(device_t bus, device_t dev)
|
|||
return (0);
|
||||
}
|
||||
|
||||
static devclass_t ppbus_devclass;
|
||||
|
||||
static device_method_t ppbus_methods[] = {
|
||||
/* device interface */
|
||||
DEVMETHOD(device_probe, ppbus_probe),
|
||||
|
|
@ -600,4 +598,5 @@ static driver_t ppbus_driver = {
|
|||
ppbus_methods,
|
||||
sizeof(struct ppb_data),
|
||||
};
|
||||
DRIVER_MODULE(ppbus, ppc, ppbus_driver, ppbus_devclass, 0, 0);
|
||||
|
||||
DRIVER_MODULE(ppbus, ppc, ppbus_driver, 0, 0);
|
||||
|
|
|
|||
|
|
@ -82,8 +82,6 @@ struct ppi_data {
|
|||
#define DEVTOSOFTC(dev) \
|
||||
((struct ppi_data *)device_get_softc(dev))
|
||||
|
||||
static devclass_t ppi_devclass;
|
||||
|
||||
#ifdef PERIPH_1284
|
||||
static void ppiintr(void *arg);
|
||||
#endif
|
||||
|
|
@ -616,5 +614,6 @@ static driver_t ppi_driver = {
|
|||
ppi_methods,
|
||||
sizeof(struct ppi_data),
|
||||
};
|
||||
DRIVER_MODULE(ppi, ppbus, ppi_driver, ppi_devclass, 0, 0);
|
||||
|
||||
DRIVER_MODULE(ppi, ppbus, ppi_driver, 0, 0);
|
||||
MODULE_DEPEND(ppi, ppbus, 1, 1, 1);
|
||||
|
|
|
|||
|
|
@ -61,8 +61,6 @@ static void ppshcpoll(void *arg);
|
|||
#define DEVTOSOFTC(dev) \
|
||||
((struct pps_data *)device_get_softc(dev))
|
||||
|
||||
static devclass_t pps_devclass;
|
||||
|
||||
static d_open_t ppsopen;
|
||||
static d_close_t ppsclose;
|
||||
static d_ioctl_t ppsioctl;
|
||||
|
|
@ -345,5 +343,6 @@ static driver_t pps_driver = {
|
|||
pps_methods,
|
||||
sizeof(struct pps_data),
|
||||
};
|
||||
DRIVER_MODULE(pps, ppbus, pps_driver, pps_devclass, 0, 0);
|
||||
|
||||
DRIVER_MODULE(pps, ppbus, pps_driver, 0, 0);
|
||||
MODULE_DEPEND(pps, ppbus, 1, 1, 1);
|
||||
|
|
|
|||
|
|
@ -88,7 +88,6 @@ static void ppcintr(void *arg);
|
|||
#define PPC_CONFIG_LOCK(ppc) critical_enter()
|
||||
#define PPC_CONFIG_UNLOCK(ppc) critical_exit()
|
||||
|
||||
devclass_t ppc_devclass;
|
||||
const char ppc_driver_name[] = "ppc";
|
||||
|
||||
static char *ppc_models[] = {
|
||||
|
|
|
|||
|
|
@ -112,4 +112,4 @@ ppc_acpi_probe(device_t dev)
|
|||
return (ppc_probe(dev, 0));
|
||||
}
|
||||
|
||||
DRIVER_MODULE(ppc, acpi, ppc_acpi_driver, ppc_devclass, 0, 0);
|
||||
DRIVER_MODULE(ppc, acpi, ppc_acpi_driver, 0, 0);
|
||||
|
|
|
|||
|
|
@ -271,5 +271,5 @@ error:
|
|||
return (error);
|
||||
}
|
||||
|
||||
DRIVER_MODULE(ppc, isa, ppc_isa_driver, ppc_devclass, 0, 0);
|
||||
DRIVER_MODULE(ppc, isa, ppc_isa_driver, 0, 0);
|
||||
ISA_PNP_INFO(lpc_ids);
|
||||
|
|
|
|||
|
|
@ -113,4 +113,4 @@ ppc_pci_probe(device_t dev)
|
|||
return (ppc_probe(dev, id->rid));
|
||||
}
|
||||
|
||||
DRIVER_MODULE(ppc, pci, ppc_pci_driver, ppc_devclass, 0, 0);
|
||||
DRIVER_MODULE(ppc, pci, ppc_pci_driver, 0, 0);
|
||||
|
|
|
|||
|
|
@ -94,4 +94,4 @@ ppc_puc_probe(device_t dev)
|
|||
return (ppc_probe(dev, 0));
|
||||
}
|
||||
|
||||
DRIVER_MODULE(ppc, puc, ppc_puc_driver, ppc_devclass, 0, 0);
|
||||
DRIVER_MODULE(ppc, puc, ppc_puc_driver, 0, 0);
|
||||
|
|
|
|||
|
|
@ -50,5 +50,4 @@ int ppc_reset_epp(device_t);
|
|||
int ppc_ecp_sync(device_t);
|
||||
int ppc_setmode(device_t, int);
|
||||
|
||||
extern devclass_t ppc_devclass;
|
||||
extern const char ppc_driver_name[];
|
||||
|
|
|
|||
Loading…
Reference in a new issue