From: Bjorn Helgaas Date: Fri, 8 Feb 2013 22:27:01 +0000 (-0700) Subject: drm/pci: define drm_pcie_get_speed_cap_mask() only when CONFIG_PCI=y X-Git-Tag: v3.9-rc1~83^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93711d8becca550154da3b9e422be77083ab51ad;p=pandora-kernel.git drm/pci: define drm_pcie_get_speed_cap_mask() only when CONFIG_PCI=y Move drm_pcie_get_speed_cap_mask() under #ifdef CONFIG_PCI because it it used only for PCI devices (evergreen, r600, r770), and it uses PCI interfaces that only exist when CONFIG_PCI=y. Previously, we tried to compile drm_pcie_get_speed_cap_mask() even when CONFIG_PCI=n, which fails. Signed-off-by: Bjorn Helgaas Acked-by: Arnd Bergmann Signed-off-by: Dave Airlie --- Reading git-diff-tree failed