drm: only build ati_pcigart if PCI enabled
authorJames Hogan <james.hogan@imgtec.com>
Fri, 23 Nov 2012 11:12:10 +0000 (11:12 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 28 Nov 2012 10:12:29 +0000 (20:12 +1000)
commitdff98e529e06fb1c801ba26953299b3390bdd34d
tree1af4a92645abcc42a2f13c5db82cb67034e887f3
parentd08a9b9cd82f668a5437c23e59063387ca3ecec5
drm: only build ati_pcigart if PCI enabled

Prevent ati_pcigart.c being built unless PCI is enabled. The exported
functions in this file are only used by drivers which depend on PCI
(namely r128 and radeon), and it tries to use PCI specific functions
(pci_unmap_page, pci_map_page, and pci_dma_mapping_error) that cause
compiler errors when PCI is disabled.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/Makefile