Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107679
b: refs/heads/master
c: 978cc90
h: refs/heads/master
i:
  107677: 99fd1e1
  107675: 02f92da
  107671: f5bb439
  107663: c153cf8
  107647: f317d16
v: v3
  • Loading branch information
Alexander Beregalov authored and Linus Torvalds committed Aug 5, 2008
1 parent 4a276e3 commit 32f90c5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5394ba0fd892291eb425649fdbc82b673e0b7956
refs/heads/master: 978cc90c469b38bcbbfd00a8c183d74e5b17bf45
29 changes: 15 additions & 14 deletions trunk/drivers/video/aty/atyfb_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ static int atyfb_sync(struct fb_info *info);
*/

static int aty_init(struct fb_info *info);
static void aty_resume_chip(struct fb_info *info);

#ifdef CONFIG_ATARI
static int store_video_par(char *videopar, unsigned char m64_num);
#endif
Expand Down Expand Up @@ -2023,6 +2023,20 @@ static int atyfb_pci_suspend(struct pci_dev *pdev, pm_message_t state)
return 0;
}

static void aty_resume_chip(struct fb_info *info)
{
struct atyfb_par *par = info->par;

aty_st_le32(MEM_CNTL, par->mem_cntl, par);

if (par->pll_ops->resume_pll)
par->pll_ops->resume_pll(info, &par->pll);

if (par->aux_start)
aty_st_le32(BUS_CNTL,
aty_ld_le32(BUS_CNTL, par) | BUS_APER_REG_DIS, par);
}

static int atyfb_pci_resume(struct pci_dev *pdev)
{
struct fb_info *info = pci_get_drvdata(pdev);
Expand Down Expand Up @@ -2659,19 +2673,6 @@ static int __devinit aty_init(struct fb_info *info)
return ret;
}

static void aty_resume_chip(struct fb_info *info)
{
struct atyfb_par *par = info->par;

aty_st_le32(MEM_CNTL, par->mem_cntl, par);

if (par->pll_ops->resume_pll)
par->pll_ops->resume_pll(info, &par->pll);

if (par->aux_start)
aty_st_le32(BUS_CNTL, aty_ld_le32(BUS_CNTL, par) | BUS_APER_REG_DIS, par);
}

#ifdef CONFIG_ATARI
static int __devinit store_video_par(char *video_str, unsigned char m64_num)
{
Expand Down

0 comments on commit 32f90c5

Please sign in to comment.