upstream: [media] drivers: media: usb: b2c2: use usb_*_coherent() instead of pci_...
authorChen Gang <gang.chen@asianux.com>
Mon, 23 Sep 2013 02:20:48 +0000 (23:20 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:52:06 +0000 (11:52 +0900)
commit2163201f1897dafb14bf308ccf8b079efc501acc
tree6a677f08442bb9d29e51390d351ecc096189c51e
parent1a0a91c8e3a271ecfcb87a6d9150bf5edbea05ed
upstream: [media] drivers: media: usb: b2c2: use usb_*_coherent() instead of pci_*_consistent() in flexcop-usb.c

Some architectures do not support PCI, but still support USB, so need
let our usb driver try to use usb_* instead of pci_* to support these
architectures, or can not pass compiling.
The related error (with allmodconfig for arc):
    CC [M]  drivers/media/usb/b2c2/flexcop-usb.o
  drivers/media/usb/b2c2/flexcop-usb.c: In function ‘flexcop_usb_transfer_exit’:
  drivers/media/usb/b2c2/flexcop-usb.c:393: error: implicit declaration of function ‘pci_free_consistent’
  drivers/media/usb/b2c2/flexcop-usb.c: In function ‘flexcop_usb_transfer_init’:
  drivers/media/usb/b2c2/flexcop-usb.c:410: error: implicit declaration of function ‘pci_alloc_consistent’

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/b2c2/flexcop-usb.c