[PATCH] i810fb: Honor the return value of pci_enable_device
Check the return value of pci_enable_device(). Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
7b566b1f7b
commit
9237ed0fef
1 changed files with 5 additions and 1 deletions
|
@ -1602,7 +1602,10 @@ static int i810fb_resume(struct pci_dev *dev)
|
||||||
acquire_console_sem();
|
acquire_console_sem();
|
||||||
pci_set_power_state(dev, PCI_D0);
|
pci_set_power_state(dev, PCI_D0);
|
||||||
pci_restore_state(dev);
|
pci_restore_state(dev);
|
||||||
pci_enable_device(dev);
|
|
||||||
|
if (pci_enable_device(dev))
|
||||||
|
goto fail;
|
||||||
|
|
||||||
pci_set_master(dev);
|
pci_set_master(dev);
|
||||||
agp_bind_memory(par->i810_gtt.i810_fb_memory,
|
agp_bind_memory(par->i810_gtt.i810_fb_memory,
|
||||||
par->fb.offset);
|
par->fb.offset);
|
||||||
|
@ -1611,6 +1614,7 @@ static int i810fb_resume(struct pci_dev *dev)
|
||||||
i810fb_set_par(info);
|
i810fb_set_par(info);
|
||||||
fb_set_suspend (info, 0);
|
fb_set_suspend (info, 0);
|
||||||
info->fbops->fb_blank(VESA_NO_BLANKING, info);
|
info->fbops->fb_blank(VESA_NO_BLANKING, info);
|
||||||
|
fail:
|
||||||
release_console_sem();
|
release_console_sem();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue