radeonfb: Use pci_dev pm_cap
authorJon Mason <jdmason@kudzu.us>
Wed, 11 Sep 2013 21:35:06 +0000 (14:35 -0700)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 19 Sep 2013 10:30:06 +0000 (13:30 +0300)
commit65122f7e80b5a4aaec76c21369c798975c3eedac
treea1142b173ac7990fc3d54a91b817585f9b364a13
parent8d0c03dd2d1e8fd0f7ac3d43e90ed99dd748ed7a
radeonfb: Use pci_dev pm_cap

Use the already existing pm_cap variable in struct pci_dev for
determining the power management offset.  This saves the driver from
having to keep track of an extra variable.  Also, use the pci_power_t
value instead of always using the raw value for PCI_D2.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/aty/radeon_pm.c
drivers/video/aty/radeonfb.h