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 /drivers/gpu/drm/nouveau/nv04_instmem.c | |
parent | d52589b785404c944e734ecc4e1d42326197613c (diff) | |
download | blackbird-op-linux-58b6542b50ded4243c26c251c0507e5f658642f6.tar.gz blackbird-op-linux-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 'drivers/gpu/drm/nouveau/nv04_instmem.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv04_instmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_instmem.c b/drivers/gpu/drm/nouveau/nv04_instmem.c index e2075dec84a3..c1248e0740a3 100644 --- a/drivers/gpu/drm/nouveau/nv04_instmem.c +++ b/drivers/gpu/drm/nouveau/nv04_instmem.c @@ -42,7 +42,7 @@ int nv04_instmem_init(struct drm_device *dev) rsvd *= dev_priv->engine.fifo.channels; /* pciegart table */ - if (drm_pci_device_is_pcie(dev)) + if (pci_is_pcie(dev->pdev)) rsvd += 512 * 1024; /* object storage */ |