aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/s3fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/s3fb.c')
-rw-r--r--drivers/video/s3fb.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/video/s3fb.c b/drivers/video/s3fb.c
index 3091b20124b4..c348813e6132 100644
--- a/drivers/video/s3fb.c
+++ b/drivers/video/s3fb.c
@@ -1061,6 +1061,7 @@ static int s3_pci_resume(struct pci_dev* dev)
1061{ 1061{
1062 struct fb_info *info = pci_get_drvdata(dev); 1062 struct fb_info *info = pci_get_drvdata(dev);
1063 struct s3fb_info *par = info->par; 1063 struct s3fb_info *par = info->par;
1064 int err;
1064 1065
1065 dev_info(&(dev->dev), "resume\n"); 1066 dev_info(&(dev->dev), "resume\n");
1066 1067
@@ -1075,7 +1076,13 @@ static int s3_pci_resume(struct pci_dev* dev)
1075 1076
1076 pci_set_power_state(dev, PCI_D0); 1077 pci_set_power_state(dev, PCI_D0);
1077 pci_restore_state(dev); 1078 pci_restore_state(dev);
1078 pci_enable_device(dev); 1079 err = pci_enable_device(dev);
1080 if (err) {
1081 mutex_unlock(&(par->open_lock));
1082 release_console_sem();
1083 dev_err(&(dev->dev), "error %d enabling device for resume\n", err);
1084 return err;
1085 }
1079 pci_set_master(dev); 1086 pci_set_master(dev);
1080 1087
1081 s3fb_set_par(info); 1088 s3fb_set_par(info);