diff options
-rw-r--r-- | drivers/video/i810/i810_main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/video/i810/i810_main.c b/drivers/video/i810/i810_main.c index d42edaccb84c..b55a12d95eb2 100644 --- a/drivers/video/i810/i810_main.c +++ b/drivers/video/i810/i810_main.c | |||
@@ -1602,7 +1602,10 @@ static int i810fb_resume(struct pci_dev *dev) | |||
1602 | acquire_console_sem(); | 1602 | acquire_console_sem(); |
1603 | pci_set_power_state(dev, PCI_D0); | 1603 | pci_set_power_state(dev, PCI_D0); |
1604 | pci_restore_state(dev); | 1604 | pci_restore_state(dev); |
1605 | pci_enable_device(dev); | 1605 | |
1606 | if (pci_enable_device(dev)) | ||
1607 | goto fail; | ||
1608 | |||
1606 | pci_set_master(dev); | 1609 | pci_set_master(dev); |
1607 | agp_bind_memory(par->i810_gtt.i810_fb_memory, | 1610 | agp_bind_memory(par->i810_gtt.i810_fb_memory, |
1608 | par->fb.offset); | 1611 | par->fb.offset); |
@@ -1611,6 +1614,7 @@ static int i810fb_resume(struct pci_dev *dev) | |||
1611 | i810fb_set_par(info); | 1614 | i810fb_set_par(info); |
1612 | fb_set_suspend (info, 0); | 1615 | fb_set_suspend (info, 0); |
1613 | info->fbops->fb_blank(VESA_NO_BLANKING, info); | 1616 | info->fbops->fb_blank(VESA_NO_BLANKING, info); |
1617 | fail: | ||
1614 | release_console_sem(); | 1618 | release_console_sem(); |
1615 | return 0; | 1619 | return 0; |
1616 | } | 1620 | } |