summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_cp.c
diff options
context:
space:
mode:
authorJon Mason <jdmason@kudzu.us>2011-06-27 16:07:50 +0000
committerDave Airlie <airlied@redhat.com>2011-07-13 08:14:52 +0100
commit58b6542b50ded4243c26c251c0507e5f658642f6 (patch)
treef2cf26ee85607daf86983b3d10871e186a0c7dde /drivers/gpu/drm/radeon/radeon_cp.c
parentd52589b785404c944e734ecc4e1d42326197613c (diff)
downloadop-kernel-dev-58b6542b50ded4243c26c251c0507e5f658642f6.zip
op-kernel-dev-58b6542b50ded4243c26c251c0507e5f658642f6.tar.gz
DRM: remove drm_pci_device_is_pcie
drm_pci_device_is_pcie duplicates the funcationality of pci_is_pcie. Convert callers of the former to the latter. This has the side benefit of removing an unnecessary search in the PCI configuration space due to using a saved PCIe capability offset. [airlied: update for new callsite] Signed-off-by: Jon Mason <jdmason@kudzu.us> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_cp.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_cp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_cp.c b/drivers/gpu/drm/radeon/radeon_cp.c
index 7586779..045ec59 100644
--- a/drivers/gpu/drm/radeon/radeon_cp.c
+++ b/drivers/gpu/drm/radeon/radeon_cp.c
@@ -2115,7 +2115,7 @@ int radeon_driver_load(struct drm_device *dev, unsigned long flags)
if (drm_pci_device_is_agp(dev))
dev_priv->flags |= RADEON_IS_AGP;
- else if (drm_pci_device_is_pcie(dev))
+ else if (pci_is_pcie(dev->pdev))
dev_priv->flags |= RADEON_IS_PCIE;
else
dev_priv->flags |= RADEON_IS_PCI;
OpenPOWER on IntegriCloud