diff options
Diffstat (limited to 'drivers/video/aty')
-rw-r--r-- | drivers/video/aty/aty128fb.c | 2 | ||||
-rw-r--r-- | drivers/video/aty/atyfb_base.c | 9 | ||||
-rw-r--r-- | drivers/video/aty/radeon_pm.c | 2 |
3 files changed, 7 insertions, 6 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; |
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c index 4f27fdc58d84..a89c15de9f45 100644 --- a/drivers/video/aty/atyfb_base.c +++ b/drivers/video/aty/atyfb_base.c | |||
@@ -58,6 +58,7 @@ | |||
58 | #include <linux/slab.h> | 58 | #include <linux/slab.h> |
59 | #include <linux/vmalloc.h> | 59 | #include <linux/vmalloc.h> |
60 | #include <linux/delay.h> | 60 | #include <linux/delay.h> |
61 | #include <linux/compiler.h> | ||
61 | #include <linux/console.h> | 62 | #include <linux/console.h> |
62 | #include <linux/fb.h> | 63 | #include <linux/fb.h> |
63 | #include <linux/init.h> | 64 | #include <linux/init.h> |
@@ -434,8 +435,8 @@ static int correct_chipset(struct atyfb_par *par) | |||
434 | const char *name; | 435 | const char *name; |
435 | int i; | 436 | int i; |
436 | 437 | ||
437 | for (i = ARRAY_SIZE(aty_chips) - 1; i >= 0; i--) | 438 | for (i = ARRAY_SIZE(aty_chips); i > 0; i--) |
438 | if (par->pci_id == aty_chips[i].pci_id) | 439 | if (par->pci_id == aty_chips[i - 1].pci_id) |
439 | break; | 440 | break; |
440 | 441 | ||
441 | if (i < 0) | 442 | if (i < 0) |
@@ -531,8 +532,8 @@ static int correct_chipset(struct atyfb_par *par) | |||
531 | return 0; | 532 | return 0; |
532 | } | 533 | } |
533 | 534 | ||
534 | static char ram_dram[] = "DRAM"; | 535 | static char ram_dram[] __maybe_unused = "DRAM"; |
535 | static char ram_resv[] = "RESV"; | 536 | static char ram_resv[] __maybe_unused = "RESV"; |
536 | #ifdef CONFIG_FB_ATY_GX | 537 | #ifdef CONFIG_FB_ATY_GX |
537 | static char ram_vram[] = "VRAM"; | 538 | static char ram_vram[] = "VRAM"; |
538 | #endif /* CONFIG_FB_ATY_GX */ | 539 | #endif /* CONFIG_FB_ATY_GX */ |
diff --git a/drivers/video/aty/radeon_pm.c b/drivers/video/aty/radeon_pm.c index 92bda5848516..f7091ece580d 100644 --- a/drivers/video/aty/radeon_pm.c +++ b/drivers/video/aty/radeon_pm.c | |||
@@ -2805,7 +2805,7 @@ static void radeonfb_early_resume(void *data) | |||
2805 | void radeonfb_pm_init(struct radeonfb_info *rinfo, int dynclk, int ignore_devlist, int force_sleep) | 2805 | void radeonfb_pm_init(struct radeonfb_info *rinfo, int dynclk, int ignore_devlist, int force_sleep) |
2806 | { | 2806 | { |
2807 | /* Find PM registers in config space if any*/ | 2807 | /* Find PM registers in config space if any*/ |
2808 | rinfo->pm_reg = pci_find_capability(rinfo->pdev, PCI_CAP_ID_PM); | 2808 | rinfo->pm_reg = rinfo->pdev->pm_cap; |
2809 | 2809 | ||
2810 | /* Enable/Disable dynamic clocks: TODO add sysfs access */ | 2810 | /* Enable/Disable dynamic clocks: TODO add sysfs access */ |
2811 | if (rinfo->family == CHIP_FAMILY_RS480) | 2811 | if (rinfo->family == CHIP_FAMILY_RS480) |