8000 intr/x86: cleanup io_apic device method tables · mcusim/freebsd-src@839fb85 · GitHub
[go: up one dir, main page]

Skip to content

Commit 839fb85

Browse files
ehembsdimp
authored andcommitted
intr/x86: cleanup io_apic device method tables
Replace the { 0, 0 } construct with the preferred DEVMETHOD_END. Add a space after to indicate it is separate from the section above. Reviewed by: imp Pull Request: freebsd#1457
1 parent 984add3 commit 839fb85

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sys/x86/x86/io_apic.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,8 @@ static device_method_t ioapic_pci_methods[] = {
10521052
/* Device interface */
10531053
DEVMETHOD(device_probe, ioapic_pci_probe),
10541054
DEVMETHOD(device_attach, ioapic_pci_attach),
9251
1055-
{ 0, 0 }
1055+
1056+
DEVMETHOD_END
10561057
};
10571058

10581059
DEFINE_CLASS_0(ioapic, ioapic_pci_driver, ioapic_pci_methods, 0);
@@ -1158,7 +1159,8 @@ static device_method_t apic_methods[] = {
11581159
DEVMETHOD(device_identify, apic_identify),
11591160
DEVMETHOD(device_probe, apic_probe),
11601161
DEVMETHOD(device_attach, apic_attach),
1161-
{ 0, 0 }
1162+
1163+
DEVMETHOD_END
11621164
};
11631165

11641166
DEFINE_CLASS_0(apic, apic_driver, apic_methods, 0);

0 commit comments

Comments
 (0)
0