[SCSI] csiostor: Use pcie_capability_clear_and_set_word() to simplify code
authorYijing Wang <wangyijing@huawei.com>
Thu, 5 Sep 2013 07:55:26 +0000 (15:55 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 23 Sep 2013 23:30:03 +0000 (17:30 -0600)
commitad4d35f865408a494f0a4c02b1c7ebd3f80f5dbf
tree3fc6033c5ea9a39a385505101580f4b12742460b
parentc0102c00d8c9f4109509d9d68631a1ad47703b5f
[SCSI] csiostor: Use pcie_capability_clear_and_set_word() to simplify code

pci_is_pcie() and pcie_capability_clear_and_set_word() make it trivial
to set the PCIe Completion Timeout, so just fold the
csio_set_pcie_completion_timeout() function into its caller.

[bhelgaas: changelog, fold csio_set_pcie_completion_timeout() into caller]
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Jiang Liu <jiang.liu@huawei.com>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Cc: Naresh Kumar Inna <naresh@chelsio.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jesper Juhl <jj@chaosbits.net>
drivers/scsi/csiostor/csio_hw.c
include/uapi/linux/pci_regs.h