diff options
author | hselasky <hselasky@FreeBSD.org> | 2011-11-12 08:16:45 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2011-11-12 08:16:45 +0000 |
commit | a3f67b08f33f8f52dd06e9f36da9671affa61bbd (patch) | |
tree | 587db003358056e234b1079f0015b7213b7202ec /sys/dev/usb/serial/uvisor.c | |
parent | 3b996bbc1149552d433105f70b0d45df8873ed70 (diff) | |
download | FreeBSD-src-a3f67b08f33f8f52dd06e9f36da9671affa61bbd.zip FreeBSD-src-a3f67b08f33f8f52dd06e9f36da9671affa61bbd.tar.gz |
Style change.
- Make it easier to port the USB code to other platforms by only using
one set of memory functions for clearing and copying memory. None of
the memory copies are overlapping. This means using bcopy() is not
required.
- Fix a compile warning when USB_HAVE_BUSDMA=0
- Add missing semicolon in avr32dci.
- Update some comments.
MFC after: 1 week
Diffstat (limited to 'sys/dev/usb/serial/uvisor.c')
-rw-r--r-- | sys/dev/usb/serial/uvisor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/serial/uvisor.c b/sys/dev/usb/serial/uvisor.c index 3c2c3a4..df96958 100644 --- a/sys/dev/usb/serial/uvisor.c +++ b/sys/dev/usb/serial/uvisor.c @@ -311,8 +311,9 @@ uvisor_attach(device_t dev) int error; DPRINTF("sc=%p\n", sc); - bcopy(uvisor_config, uvisor_config_copy, + memcpy(uvisor_config_copy, uvisor_config, sizeof(uvisor_config_copy)); + device_set_usb_desc(dev); mtx_init(&sc->sc_mtx, "uvisor", NULL, MTX_DEF); |