Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268343
b: refs/heads/master
c: 3028474
h: refs/heads/master
i:
  268341: abf29b1
  268339: 22e8412
  268335: 4c7ccc8
v: v3
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Sep 12, 2011
1 parent ebdb764 commit abfb130
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 831e5bad5f74d6147d2d70587a230687181e4e00
refs/heads/master: 3028474cb469ff5352bbc7cc685eee46ab8e888b
13 changes: 12 additions & 1 deletion trunk/drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -2424,13 +2424,19 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,

if (register_framebuffer(fb_info) < 0) {
ret = -EINVAL;
goto error_1;
goto error_mtrr;
}

dumpVGAReg();

return 0;

error_mtrr:
#ifdef CONFIG_MTRR
if (xgi_video_info.mtrr >= 0)
mtrr_del(xgi_video_info.mtrr, xgi_video_info.video_base,
xgi_video_info.video_size);
#endif /* CONFIG_MTRR */
error_1:
iounmap(xgi_video_info.mmio_vbase);
iounmap(xgi_video_info.video_vbase);
Expand All @@ -2451,6 +2457,11 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
static void __devexit xgifb_remove(struct pci_dev *pdev)
{
unregister_framebuffer(fb_info);
#ifdef CONFIG_MTRR
if (xgi_video_info.mtrr >= 0)
mtrr_del(xgi_video_info.mtrr, xgi_video_info.video_base,
xgi_video_info.video_size);
#endif /* CONFIG_MTRR */
iounmap(xgi_video_info.mmio_vbase);
iounmap(xgi_video_info.video_vbase);
release_mem_region(xgi_video_info.mmio_base, xgi_video_info.mmio_size);
Expand Down

0 comments on commit abfb130

Please sign in to comment.