diff options
author | Jon Mason <jdmason@kudzu.us> | 2011-06-27 16:07:50 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-07-13 08:14:52 +0100 |
commit | 58b6542b50ded4243c26c251c0507e5f658642f6 (patch) | |
tree | f2cf26ee85607daf86983b3d10871e186a0c7dde /include/drm | |
parent | d52589b785404c944e734ecc4e1d42326197613c (diff) | |
download | lwn-58b6542b50ded4243c26c251c0507e5f658642f6.tar.gz lwn-58b6542b50ded4243c26c251c0507e5f658642f6.zip |
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.h | 7 |
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) return pci_find_capability(dev->pdev, PCI_CAP_ID_AGP); } - -static __inline__ int drm_pci_device_is_pcie(struct drm_device *dev) -{ - return pci_find_capability(dev->pdev, PCI_CAP_ID_EXP); -} - - extern int drm_pci_init(struct drm_driver *driver, struct pci_driver *pdriver); extern void drm_pci_exit(struct drm_driver *driver, struct pci_driver *pdriver); extern int drm_get_pci_dev(struct pci_dev *pdev, |