staging: et131x: Use pci_dev->pcie_mpss and pcie_set_readrq() to simplify code
authorYijing Wang <wangyijing@huawei.com>
Mon, 9 Sep 2013 13:13:07 +0000 (21:13 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 4 Oct 2013 20:31:03 +0000 (14:31 -0600)
commit9db008d0d963f358c13381e86f5a042579216f06
tree06450cae6b2be5dc5223a7d6970e66d410b71f96
parent03078633a6eb86fdb6ea2f40e6352de4b1181bbf
staging: et131x: Use pci_dev->pcie_mpss and pcie_set_readrq() to simplify code

The PCI core caches the "PCIe Max Payload Size Supported" in
pci_dev->pcie_mpss, so use that instead of pcie_capability_read_dword().
Also use pcie_set_readrq() instead of pcie_capability_clear_and_set_word()
to simplify code.

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Mark Einon <mark.einon@gmail.com>
drivers/staging/et131x/et131x.c