From: Bjorn Helgaas Date: Fri, 4 Jan 2013 19:10:42 +0000 (+0000) Subject: drm/pci: Use PCI Express Capability accessors X-Git-Tag: v3.9-rc1~83^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd66cc2e1f4765d0e6f39eb1e7d8d64d3f1cc522;p=pandora-kernel.git drm/pci: Use PCI Express Capability accessors Use PCI Express Capability access functions to simplify this code a bit. For non-PCIe devices or pre-PCIe 3.0 devices that don't implement the Link Capabilities 2 register, pcie_capability_read_dword() reads a zero. Since we're only testing whether the bits we care about are set, there's no need to mask out the other bits we *don't* care about. Signed-off-by: Bjorn Helgaas Signed-off-by: Dave Airlie --- Reading git-diff-tree failed