]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
[media] drivers: media: usb: b2c2: use usb_*_coherent() instead of pci_*_consistent...
authorChen Gang <gang.chen@asianux.com>
Mon, 23 Sep 2013 02:20:48 +0000 (23:20 -0300)
committerJiri Slaby <jslaby@suse.cz>
Wed, 22 Apr 2015 06:58:49 +0000 (08:58 +0200)
commit147ff1a3401cc7060ee047d102df04c4e64d73b6
treef001ccb38c0e062e317778f753dc5d70b6799239
parentc2b885aeb3b33fefd9ff2b46b5156cc65b7dbbe7
[media] drivers: media: usb: b2c2: use usb_*_coherent() instead of pci_*_consistent() in flexcop-usb.c

commit 6c7e346974ad6d20898026f209581fb6dd8ce3f0 upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/media/usb/b2c2/flexcop-usb.c