]> 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)
commit535d2a28ed65ca9611213abef05cd5eeaf4c586e
tree1af4a92645abcc42a2f13c5db82cb67034e887f3
parent6d8b32bb41cfc5555101e97b5a42ac88898109b5
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