DRM: remove drm_pci_device_is_pcie
authorJon Mason <jdmason@kudzu.us>
Mon, 27 Jun 2011 16:07:50 +0000 (16:07 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 13 Jul 2011 07:14:52 +0000 (08:14 +0100)
commit58b6542b50ded4243c26c251c0507e5f658642f6
treef2cf26ee85607daf86983b3d10871e186a0c7dde
parentd52589b785404c944e734ecc4e1d42326197613c
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>
drivers/gpu/drm/nouveau/nouveau_mem.c
drivers/gpu/drm/nouveau/nouveau_sgdma.c
drivers/gpu/drm/nouveau/nouveau_state.c
drivers/gpu/drm/nouveau/nv04_instmem.c
drivers/gpu/drm/radeon/radeon_cp.c
drivers/gpu/drm/radeon/radeon_kms.c
include/drm/drmP.h