diff options
Diffstat (limited to 'drivers/video/aty')
-rw-r--r-- | drivers/video/aty/atyfb_base.c | 29 | ||||
-rw-r--r-- | drivers/video/aty/radeon_accel.c | 4 | ||||
-rw-r--r-- | drivers/video/aty/radeon_i2c.c | 3 |
3 files changed, 19 insertions, 17 deletions
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c index 620ba812036..cc6b470073d 100644 --- a/drivers/video/aty/atyfb_base.c +++ b/drivers/video/aty/atyfb_base.c | |||
@@ -244,7 +244,7 @@ static int atyfb_sync(struct fb_info *info); | |||
244 | */ | 244 | */ |
245 | 245 | ||
246 | static int aty_init(struct fb_info *info); | 246 | static int aty_init(struct fb_info *info); |
247 | static void aty_resume_chip(struct fb_info *info); | 247 | |
248 | #ifdef CONFIG_ATARI | 248 | #ifdef CONFIG_ATARI |
249 | static int store_video_par(char *videopar, unsigned char m64_num); | 249 | static int store_video_par(char *videopar, unsigned char m64_num); |
250 | #endif | 250 | #endif |
@@ -2023,6 +2023,20 @@ static int atyfb_pci_suspend(struct pci_dev *pdev, pm_message_t state) | |||
2023 | return 0; | 2023 | return 0; |
2024 | } | 2024 | } |
2025 | 2025 | ||
2026 | static void aty_resume_chip(struct fb_info *info) | ||
2027 | { | ||
2028 | struct atyfb_par *par = info->par; | ||
2029 | |||
2030 | aty_st_le32(MEM_CNTL, par->mem_cntl, par); | ||
2031 | |||
2032 | if (par->pll_ops->resume_pll) | ||
2033 | par->pll_ops->resume_pll(info, &par->pll); | ||
2034 | |||
2035 | if (par->aux_start) | ||
2036 | aty_st_le32(BUS_CNTL, | ||
2037 | aty_ld_le32(BUS_CNTL, par) | BUS_APER_REG_DIS, par); | ||
2038 | } | ||
2039 | |||
2026 | static int atyfb_pci_resume(struct pci_dev *pdev) | 2040 | static int atyfb_pci_resume(struct pci_dev *pdev) |
2027 | { | 2041 | { |
2028 | struct fb_info *info = pci_get_drvdata(pdev); | 2042 | struct fb_info *info = pci_get_drvdata(pdev); |
@@ -2659,19 +2673,6 @@ aty_init_exit: | |||
2659 | return ret; | 2673 | return ret; |
2660 | } | 2674 | } |
2661 | 2675 | ||
2662 | static void aty_resume_chip(struct fb_info *info) | ||
2663 | { | ||
2664 | struct atyfb_par *par = info->par; | ||
2665 | |||
2666 | aty_st_le32(MEM_CNTL, par->mem_cntl, par); | ||
2667 | |||
2668 | if (par->pll_ops->resume_pll) | ||
2669 | par->pll_ops->resume_pll(info, &par->pll); | ||
2670 | |||
2671 | if (par->aux_start) | ||
2672 | aty_st_le32(BUS_CNTL, aty_ld_le32(BUS_CNTL, par) | BUS_APER_REG_DIS, par); | ||
2673 | } | ||
2674 | |||
2675 | #ifdef CONFIG_ATARI | 2676 | #ifdef CONFIG_ATARI |
2676 | static int __devinit store_video_par(char *video_str, unsigned char m64_num) | 2677 | static int __devinit store_video_par(char *video_str, unsigned char m64_num) |
2677 | { | 2678 | { |
diff --git a/drivers/video/aty/radeon_accel.c b/drivers/video/aty/radeon_accel.c index 3ca27cb13ca..4d13f68436e 100644 --- a/drivers/video/aty/radeon_accel.c +++ b/drivers/video/aty/radeon_accel.c | |||
@@ -241,8 +241,8 @@ void radeonfb_engine_reset(struct radeonfb_info *rinfo) | |||
241 | INREG(HOST_PATH_CNTL); | 241 | INREG(HOST_PATH_CNTL); |
242 | OUTREG(HOST_PATH_CNTL, host_path_cntl); | 242 | OUTREG(HOST_PATH_CNTL, host_path_cntl); |
243 | 243 | ||
244 | if (rinfo->family != CHIP_FAMILY_R300 || | 244 | if (rinfo->family != CHIP_FAMILY_R300 && |
245 | rinfo->family != CHIP_FAMILY_R350 || | 245 | rinfo->family != CHIP_FAMILY_R350 && |
246 | rinfo->family != CHIP_FAMILY_RV350) | 246 | rinfo->family != CHIP_FAMILY_RV350) |
247 | OUTREG(RBBM_SOFT_RESET, rbbm_soft_reset); | 247 | OUTREG(RBBM_SOFT_RESET, rbbm_soft_reset); |
248 | 248 | ||
diff --git a/drivers/video/aty/radeon_i2c.c b/drivers/video/aty/radeon_i2c.c index f9e7c29ad9b..8c8fa35f1b7 100644 --- a/drivers/video/aty/radeon_i2c.c +++ b/drivers/video/aty/radeon_i2c.c | |||
@@ -69,7 +69,8 @@ static int radeon_setup_i2c_bus(struct radeon_i2c_chan *chan, const char *name) | |||
69 | { | 69 | { |
70 | int rc; | 70 | int rc; |
71 | 71 | ||
72 | strcpy(chan->adapter.name, name); | 72 | snprintf(chan->adapter.name, sizeof(chan->adapter.name), |
73 | "radeonfb %s", name); | ||
73 | chan->adapter.owner = THIS_MODULE; | 74 | chan->adapter.owner = THIS_MODULE; |
74 | chan->adapter.id = I2C_HW_B_RADEON; | 75 | chan->adapter.id = I2C_HW_B_RADEON; |
75 | chan->adapter.algo_data = &chan->algo; | 76 | chan->adapter.algo_data = &chan->algo; |