diff options
author | Yijing Wang <wangyijing@huawei.com> | 2013-06-26 05:13:12 +0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-06-27 10:35:36 +0400 |
commit | 394c90f2a325a7fc9f0525517a4cc3708207b4db (patch) | |
tree | 1ada682fe2d6c740d3059ef8482728c8d1c394fa /Documentation/CodingStyle | |
parent | d22cd3016964afdacf27a0d63b65a90393b2e66a (diff) | |
download | linux-394c90f2a325a7fc9f0525517a4cc3708207b4db.tar.xz |
aty128fb: 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.
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'Documentation/CodingStyle')
0 files changed, 0 insertions, 0 deletions