diff options
author | Yijing Wang <wangyijing@huawei.com> | 2013-06-25 21:13:12 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-06-27 02:35:36 -0400 |
commit | 394c90f2a325a7fc9f0525517a4cc3708207b4db (patch) | |
tree | 1ada682fe2d6c740d3059ef8482728c8d1c394fa | |
parent | d22cd3016964afdacf27a0d63b65a90393b2e66a (diff) |
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>
-rw-r--r-- | drivers/video/aty/aty128fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/aty/aty128fb.c b/drivers/video/aty/aty128fb.c index 8c55011313dc..a4dfe8cb0a0a 100644 --- a/drivers/video/aty/aty128fb.c +++ b/drivers/video/aty/aty128fb.c | |||
@@ -2016,7 +2016,7 @@ static int aty128_init(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
2016 | 2016 | ||
2017 | aty128_init_engine(par); | 2017 | aty128_init_engine(par); |
2018 | 2018 | ||
2019 | par->pm_reg = pci_find_capability(pdev, PCI_CAP_ID_PM); | 2019 | par->pm_reg = pdev->pm_cap; |
2020 | par->pdev = pdev; | 2020 | par->pdev = pdev; |
2021 | par->asleep = 0; | 2021 | par->asleep = 0; |
2022 | par->lock_blank = 0; | 2022 | par->lock_blank = 0; |