]> rtime.felk.cvut.cz Git - linux-imx.git/commit
drm/pci: define drm_pcie_get_speed_cap_mask() only when CONFIG_PCI=y
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 8 Feb 2013 22:27:01 +0000 (15:27 -0700)
committerDave Airlie <airlied@redhat.com>
Fri, 15 Feb 2013 00:15:19 +0000 (10:15 +1000)
commit93711d8becca550154da3b9e422be77083ab51ad
tree7079033dbe17244279fd8c16de0fda428ab300f9
parentdb3985e5ca8f50fc17606855ba394783d11683a5
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 <bhelgaas@google.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_pci.c