Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54899
b: refs/heads/master
c: 6314db4
h: refs/heads/master
i:
  54897: 88a13a6
  54895: 0c21d8e
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed May 8, 2007
1 parent f50a386 commit de944c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 042f10ec6533e53181284c96d22ae051e49ac707
refs/heads/master: 6314db4110ad79cc666faff2209ed2691259afd9
9 changes: 8 additions & 1 deletion trunk/drivers/video/s3fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,7 @@ static int s3_pci_resume(struct pci_dev* dev)
{
struct fb_info *info = pci_get_drvdata(dev);
struct s3fb_info *par = info->par;
int err;

dev_info(&(dev->dev), "resume\n");

Expand All @@ -1075,7 +1076,13 @@ static int s3_pci_resume(struct pci_dev* dev)

pci_set_power_state(dev, PCI_D0);
pci_restore_state(dev);
pci_enable_device(dev);
err = pci_enable_device(dev);
if (err) {
mutex_unlock(&(par->open_lock));
release_console_sem();
dev_err(&(dev->dev), "error %d enabling device for resume\n", err);
return err;
}
pci_set_master(dev);

s3fb_set_par(info);
Expand Down

0 comments on commit de944c7

Please sign in to comment.