Files
linux/drivers/scsi/pm8001
Yijing Wang c8a2ba3f50 [SCSI] pm8001: use pdev->pm_cap instead of pci_find_capability(..,PCI_CAP_ID_PM)
Pci core has been saved pm cap register offset by pdev->pm_cap in
pci_pm_init() in init path. So we can use pdev->pm_cap instead of using
pci_find_capability(pdev, PCI_CAP_ID_PM) for better performance and simplified
code.

Tested-by: Lindar Liu <[email protected]>
Signed-off-by: Yijing Wang <[email protected]>
Acked-by: Lindar Liu <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
2013-07-05 22:42:43 +01:00
..