diff options
author | marius <marius@FreeBSD.org> | 2009-03-19 20:31:55 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2009-03-19 20:31:55 +0000 |
commit | a31e11a44a3c2f3b5183b07d30422d7fe0753bbb (patch) | |
tree | 63d52d4551d9d285f12b6b41c825c5e9853af930 /sys/sparc64/pci | |
parent | c9b15b25d5539afbe4eef814639e2aecaaa01031 (diff) | |
download | FreeBSD-src-a31e11a44a3c2f3b5183b07d30422d7fe0753bbb.zip FreeBSD-src-a31e11a44a3c2f3b5183b07d30422d7fe0753bbb.tar.gz |
- Sort device methods.
- Take advantage of KOBJMETHOD_END.
Diffstat (limited to 'sys/sparc64/pci')
-rw-r--r-- | sys/sparc64/pci/apb.c | 4 | ||||
-rw-r--r-- | sys/sparc64/pci/ofw_pcib.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/sparc64/pci/apb.c b/sys/sparc64/pci/apb.c index ba0698c..ad4dfca 100644 --- a/sys/sparc64/pci/apb.c +++ b/sys/sparc64/pci/apb.c @@ -90,9 +90,9 @@ static device_method_t apb_methods[] = { DEVMETHOD(bus_read_ivar, pcib_read_ivar), DEVMETHOD(bus_write_ivar, pcib_write_ivar), DEVMETHOD(bus_alloc_resource, apb_alloc_resource), - DEVMETHOD(bus_release_resource, bus_generic_release_resource), DEVMETHOD(bus_activate_resource, bus_generic_activate_resource), DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource), + DEVMETHOD(bus_release_resource, bus_generic_release_resource), DEVMETHOD(bus_setup_intr, bus_generic_setup_intr), DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr), @@ -105,7 +105,7 @@ static device_method_t apb_methods[] = { /* ofw_bus interface */ DEVMETHOD(ofw_bus_get_node, ofw_pcib_gen_get_node), - { 0, 0 } + KOBJMETHOD_END }; static devclass_t pcib_devclass; diff --git a/sys/sparc64/pci/ofw_pcib.c b/sys/sparc64/pci/ofw_pcib.c index 8a5b991..3be57e3 100644 --- a/sys/sparc64/pci/ofw_pcib.c +++ b/sys/sparc64/pci/ofw_pcib.c @@ -71,9 +71,9 @@ static device_method_t ofw_pcib_methods[] = { DEVMETHOD(bus_read_ivar, pcib_read_ivar), DEVMETHOD(bus_write_ivar, pcib_write_ivar), DEVMETHOD(bus_alloc_resource, pcib_alloc_resource), - DEVMETHOD(bus_release_resource, bus_generic_release_resource), DEVMETHOD(bus_activate_resource, bus_generic_activate_resource), DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource), + DEVMETHOD(bus_release_resource, bus_generic_release_resource), DEVMETHOD(bus_setup_intr, bus_generic_setup_intr), DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr), @@ -86,7 +86,7 @@ static device_method_t ofw_pcib_methods[] = { /* ofw_bus interface */ DEVMETHOD(ofw_bus_get_node, ofw_pcib_gen_get_node), - { 0, 0 } + KOBJMETHOD_END }; static devclass_t pcib_devclass; |