aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorJon Mason <jdmason@kudzu.us>2011-06-27 12:07:50 -0400
committerDave Airlie <airlied@redhat.com>2011-07-13 03:14:52 -0400
commit58b6542b50ded4243c26c251c0507e5f658642f6 (patch)
treef2cf26ee85607daf86983b3d10871e186a0c7dde /include/drm
parentd52589b785404c944e734ecc4e1d42326197613c (diff)
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 'include/drm')
-rw-r--r--include/drm/drmP.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 4912cb75ae4c..d9c8c6c4639a 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1674,13 +1674,6 @@ static __inline__ int drm_pci_device_is_agp(struct drm_device *dev)
1674 return pci_find_capability(dev->pdev, PCI_CAP_ID_AGP); 1674 return pci_find_capability(dev->pdev, PCI_CAP_ID_AGP);
1675} 1675}
1676 1676
1677
1678static __inline__ int drm_pci_device_is_pcie(struct drm_device *dev)
1679{
1680 return pci_find_capability(dev->pdev, PCI_CAP_ID_EXP);
1681}
1682
1683
1684extern int drm_pci_init(struct drm_driver *driver, struct pci_driver *pdriver); 1677extern int drm_pci_init(struct drm_driver *driver, struct pci_driver *pdriver);
1685extern void drm_pci_exit(struct drm_driver *driver, struct pci_driver *pdriver); 1678extern void drm_pci_exit(struct drm_driver *driver, struct pci_driver *pdriver);
1686extern int drm_get_pci_dev(struct pci_dev *pdev, 1679extern int drm_get_pci_dev(struct pci_dev *pdev,