V4L/DVB (9472): dm1105: fix the misuse of pci_dma_mapping_error
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Fri, 24 Oct 2008 09:13:23 +0000 (06:13 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 19:53:24 +0000 (17:53 -0200)
commit7b51a70cbf0c9995caf59f7126d251e14a9e0686
tree9413bf6ffbc736a751a338db4da3ad9d05792f9b
parent20dafb3b0696471cfaa3e2fc2769516ebda3daf9
V4L/DVB (9472): dm1105: fix the misuse of pci_dma_mapping_error

pci_dma_mapping_error can't be used for pci_alloc_consistent
(pci_dma_mapping_error is for dma_map_single and dma_map_page).
pci_alloc_consistent returns NULL if the allocation fails.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dm1105/dm1105.c