diff options
author | Sofian Brabez <sbz@FreeBSD.org> | 2013-01-30 18:01:20 +0000 |
---|---|---|
committer | Sofian Brabez <sbz@FreeBSD.org> | 2013-01-30 18:01:20 +0000 |
commit | 61bfd867626dad25026bafcbc5fbc595d9e85417 (patch) | |
tree | b90283573540537e551848558d0045460649c4e6 /sys/dev/usb/storage | |
parent | 8caedc2a57834d003127e32c17bc149271d856c2 (diff) | |
download | src-61bfd867626dad25026bafcbc5fbc595d9e85417.tar.gz src-61bfd867626dad25026bafcbc5fbc595d9e85417.zip |
Use DEVMETHOD_END macro defined in sys/bus.h instead of {0, 0} sentinel on device_method_t arrays
Reviewed by: cognet
Approved by: cognet
Notes
Notes:
svn path=/head/; revision=246128
Diffstat (limited to 'sys/dev/usb/storage')
-rw-r--r-- | sys/dev/usb/storage/umass.c | 3 | ||||
-rw-r--r-- | sys/dev/usb/storage/urio.c | 3 | ||||
-rw-r--r-- | sys/dev/usb/storage/ustorage_fs.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/usb/storage/umass.c b/sys/dev/usb/storage/umass.c index a7feea741057..e2ff0ef6ddac 100644 --- a/sys/dev/usb/storage/umass.c +++ b/sys/dev/usb/storage/umass.c @@ -698,7 +698,8 @@ static device_method_t umass_methods[] = { DEVMETHOD(device_probe, umass_probe), DEVMETHOD(device_attach, umass_attach), DEVMETHOD(device_detach, umass_detach), - {0, 0} + + DEVMETHOD_END }; static driver_t umass_driver = { diff --git a/sys/dev/usb/storage/urio.c b/sys/dev/usb/storage/urio.c index 39fcbe9aa5f9..6cbb596ef1b3 100644 --- a/sys/dev/usb/storage/urio.c +++ b/sys/dev/usb/storage/urio.c @@ -185,7 +185,8 @@ static device_method_t urio_methods[] = { DEVMETHOD(device_probe, urio_probe), DEVMETHOD(device_attach, urio_attach), DEVMETHOD(device_detach, urio_detach), - {0, 0} + + DEVMETHOD_END }; static driver_t urio_driver = { diff --git a/sys/dev/usb/storage/ustorage_fs.c b/sys/dev/usb/storage/ustorage_fs.c index b2cda104b478..15a5ba919f0a 100644 --- a/sys/dev/usb/storage/ustorage_fs.c +++ b/sys/dev/usb/storage/ustorage_fs.c @@ -256,7 +256,7 @@ static device_method_t ustorage_fs_methods[] = { DEVMETHOD(device_suspend, ustorage_fs_suspend), DEVMETHOD(device_resume, ustorage_fs_resume), - {0, 0} + DEVMETHOD_END }; static driver_t ustorage_fs_driver = { |