myri10ge: Use PCI Express Capability accessors
authorJiang Liu <jiang.liu@huawei.com>
Tue, 24 Jul 2012 09:20:22 +0000 (17:20 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 23 Aug 2012 16:11:14 +0000 (10:11 -0600)
commit9503e255763da2e6b5b0d0d9dfa104e1ca8d035a
tree8675a86b2e9c52ddc9f9680518fa0b0f3f567572
parent56cda12986a243a66b9714f9ccac884e2faea38e
myri10ge: Use PCI Express Capability accessors

Use PCI Express Capability access functions to simplify myri10ge driver.

[bhelgaas: fix myri10ge_toggle_relaxed() return value]
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/net/ethernet/myricom/myri10ge/myri10ge.c