USB: cdc-wdm: no need to use usb_alloc_coherent
commit8457d99cab81e91724b43363f7fccd851d766187
authorBjørn Mork <bjorn@mork.no>
Mon, 16 Jan 2012 14:12:00 +0000 (16 15:12 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Jan 2012 22:34:09 +0000 (24 14:34 -0800)
tree92b6e613c007894e2da249008b68b9bd7637b26f
parentcafbe85fb0d00d32988905c4978df433ca9b6512
USB: cdc-wdm: no need to use usb_alloc_coherent

As Documentation/usb/dma.txt states:

  Most drivers should *NOT* be using these primitives; they don't need
  to use this type of memory (dma-coherent), and memory returned from
  kmalloc() will work just fine.

This driver handle only very low bandwith transfers.  It is not an
obvious candidate for usb_alloc_coherent().

Using these calls only serves to complicate the code for no gain,
as has been shown by multiple bugs related to this allocation path.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-wdm.c