drm/radeon: Skip dma copy test in benchmark if card doesn't have dma engine.
authorPauli Nieminen <suokkos@gmail.com>
Wed, 10 Feb 2010 22:10:33 +0000 (00:10 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 11 Feb 2010 03:13:25 +0000 (13:13 +1000)
commitc60a284cc41f9989391706e113d30b4f27dbe3e0
treebc16fb8279a410e309f9853ad4bb6c701b988e96
parent6719fc663c6cd30da5dd02d08aaefb031a7a98fd
drm/radeon: Skip dma copy test in benchmark if card doesn't have dma engine.

radeon_copy_dma is only available for r200 or newer cards.
Call to radeon_copy_dma would result to NULL pointer
dereference if benchmarking asic without dma engine.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_benchmark.c