diff options
author | Pyun YongHyeon <yongari@FreeBSD.org> | 2007-11-22 02:45:00 +0000 |
---|---|---|
committer | Pyun YongHyeon <yongari@FreeBSD.org> | 2007-11-22 02:45:00 +0000 |
commit | 6a087a8722f8f5730da0236d0656ed363b8f87b3 (patch) | |
tree | d1d19f54c55bb9daf8443358fe00c8ae2018ba6b /sys/dev/vx | |
parent | e7356456ed980db73b21df22d5405c1aaeeca003 (diff) | |
download | src-6a087a8722f8f5730da0236d0656ed363b8f87b3.tar.gz src-6a087a8722f8f5730da0236d0656ed363b8f87b3.zip |
Fix function prototype for device_shutdown method.
Notes
Notes:
svn path=/head/; revision=173839
Diffstat (limited to 'sys/dev/vx')
-rw-r--r-- | sys/dev/vx/if_vx_pci.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/vx/if_vx_pci.c b/sys/dev/vx/if_vx_pci.c index 194887f5040b..041277801162 100644 --- a/sys/dev/vx/if_vx_pci.c +++ b/sys/dev/vx/if_vx_pci.c @@ -51,7 +51,7 @@ __FBSDID("$FreeBSD$"); #include <dev/vx/if_vxreg.h> #include <dev/vx/if_vxvar.h> -static void vx_pci_shutdown(device_t); +static int vx_pci_shutdown(device_t); static int vx_pci_probe(device_t); static int vx_pci_attach(device_t); @@ -76,7 +76,7 @@ DRIVER_MODULE(vx, pci, vx_driver, vx_devclass, 0, 0); MODULE_DEPEND(vx, pci, 1, 1, 1); MODULE_DEPEND(vx, ether, 1, 1, 1); -static void +static int vx_pci_shutdown(device_t dev) { struct vx_softc *sc; @@ -85,6 +85,8 @@ vx_pci_shutdown(device_t dev) VX_LOCK(sc); vx_stop(sc); VX_UNLOCK(sc); + + return (0); } static int |