Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17095
b: refs/heads/master
c: df22b8a
h: refs/heads/master
i:
  17093: ec6ed85
  17091: ba11900
  17087: 5a1a2ae
v: v3
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed Jan 9, 2006
1 parent cd43f28 commit 289e7a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 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: 162875570e65b56a7f4d804fc32aebf7a434cf89
refs/heads/master: df22b8aaba3f41cc61f57f5ead78be45edcb7db5
19 changes: 6 additions & 13 deletions trunk/drivers/net/sk98lin/skge.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,17 +292,12 @@ static __devinit int SkGeInitPCI(SK_AC *pAC)
struct pci_dev *pdev = pAC->PciDev;
int retval;

if (pci_enable_device(pdev) != 0) {
return 1;
}

dev->mem_start = pci_resource_start (pdev, 0);
pci_set_master(pdev);

if (pci_request_regions(pdev, "sk98lin") != 0) {
retval = 2;
goto out_disable;
}
retval = pci_request_regions(pdev, "sk98lin");
if (retval)
goto out;

#ifdef SK_BIG_ENDIAN
/*
Expand All @@ -321,18 +316,16 @@ static __devinit int SkGeInitPCI(SK_AC *pAC)
* Remap the regs into kernel space.
*/
pAC->IoBase = ioremap_nocache(dev->mem_start, 0x4000);

if (!pAC->IoBase){
retval = 3;
if (!pAC->IoBase) {
retval = -EIO;
goto out_release;
}

return 0;

out_release:
pci_release_regions(pdev);
out_disable:
pci_disable_device(pdev);
out:
return retval;
}

Expand Down

0 comments on commit 289e7a6

Please sign in to comment.