Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317268
b: refs/heads/master
c: 05e0603
h: refs/heads/master
v: v3
  • Loading branch information
Miguel Gómez authored and Greg Kroah-Hartman committed Jun 12, 2012
1 parent 1ebb9e1 commit 6a4cf90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: d049053ef052535c8986f104f904548dfcaa14aa
refs/heads/master: 05e06036ddffd3e285bddc23e4ce55f54cd27537
10 changes: 6 additions & 4 deletions trunk/drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -1904,7 +1904,7 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
if (reg1 != 0xa1) { /*I/O error */
pr_err("I/O error!!!");
ret = -EIO;
goto error;
goto error_disable;
}

switch (xgifb_info->chip_id) {
Expand All @@ -1927,7 +1927,7 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
break;
default:
ret = -ENODEV;
goto error;
goto error_disable;
}

pr_info("chipid = %x\n", xgifb_info->chip);
Expand All @@ -1936,7 +1936,7 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
if (XGIfb_get_dram_size(xgifb_info)) {
pr_err("Fatal error: Unable to determine RAM size.\n");
ret = -ENODEV;
goto error;
goto error_disable;
}

/* Enable PCI_LINEAR_ADDRESSING and MMIO_ENABLE */
Expand All @@ -1956,7 +1956,7 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
pr_err("Fatal error: Unable to reserve frame buffer memory\n");
pr_err("Is there another framebuffer driver active?\n");
ret = -ENODEV;
goto error;
goto error_disable;
}

if (!request_mem_region(xgifb_info->mmio_base,
Expand Down Expand Up @@ -2271,6 +2271,8 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
release_mem_region(xgifb_info->mmio_base, xgifb_info->mmio_size);
error_0:
release_mem_region(xgifb_info->video_base, xgifb_info->video_size);
error_disable:
pci_disable_device(pdev);
error:
framebuffer_release(fb_info);
return ret;
Expand Down

0 comments on commit 6a4cf90

Please sign in to comment.