git: fb9f63e88e1a - main - ida: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 22:43:22 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=fb9f63e88e1a9ae0f4936e99e872278cd086eecd commit fb9f63e88e1a9ae0f4936e99e872278cd086eecd Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-19 21:42:44 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-06 22:39:30 +0000 ida: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/ida/ida_disk.c | 4 +--- sys/dev/ida/ida_pci.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/sys/dev/ida/ida_disk.c b/sys/dev/ida/ida_disk.c index 35d70ac896c3..0cd242d45bf2 100644 --- a/sys/dev/ida/ida_disk.c +++ b/sys/dev/ida/ida_disk.c @@ -64,8 +64,6 @@ static int idad_detach(device_t dev); static d_strategy_t idad_strategy; static dumper_t idad_dump; -static devclass_t idad_devclass; - static device_method_t idad_methods[] = { DEVMETHOD(device_probe, idad_probe), DEVMETHOD(device_attach, idad_attach), @@ -79,7 +77,7 @@ static driver_t idad_driver = { sizeof(struct idad_softc) }; -DRIVER_MODULE(idad, ida, idad_driver, idad_devclass, 0, 0); +DRIVER_MODULE(idad, ida, idad_driver, 0, 0); /* * Read/write routine for a buffer. Finds the proper unit, range checks diff --git a/sys/dev/ida/ida_pci.c b/sys/dev/ida/ida_pci.c index 083d52ded3f1..0af3b331c0f1 100644 --- a/sys/dev/ida/ida_pci.c +++ b/sys/dev/ida/ida_pci.c @@ -201,8 +201,6 @@ static driver_t ida_pci_driver = { sizeof(struct ida_softc) }; -static devclass_t ida_devclass; - static struct ida_board * ida_pci_match(device_t dev) { @@ -307,6 +305,6 @@ ida_pci_attach(device_t dev) return (0); } -DRIVER_MODULE(ida, pci, ida_pci_driver, ida_devclass, 0, 0); +DRIVER_MODULE(ida, pci, ida_pci_driver, 0, 0); MODULE_PNP_INFO("W32:vendor/device;D:#", pci, ida, board_id, nitems(board_id) - 1);