]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitffc51f773ec4f442d3895f83507d4188943bbb19
tree1af4a92645abcc42a2f13c5db82cb67034e887f3
parenta9090c3335d87081eb599e5e23373c99d4c3650b
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