Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219676
b: refs/heads/master
c: 4fd09f9
h: refs/heads/master
v: v3
  • Loading branch information
Kulikov Vasiliy authored and Greg Kroah-Hartman committed Aug 31, 2010
1 parent 2cfcf98 commit ba5a9e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: beef9697244991c43673716447edd8a12b177b36
refs/heads/master: 4fd09f900a218c3cb61a2b015b03dcbd6f96b600
7 changes: 5 additions & 2 deletions trunk/drivers/staging/spectra/lld_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -2411,13 +2411,15 @@ static int nand_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
csr_base = pci_resource_start(dev, 0);
if (!csr_base) {
printk(KERN_ERR "Spectra: pci_resource_start failed!\n");
return -ENODEV;
ret = -ENODEV;
goto failed_req_csr;
}

csr_len = pci_resource_len(dev, 0);
if (!csr_len) {
printk(KERN_ERR "Spectra: pci_resource_len failed!\n");
return -ENODEV;
ret = -ENODEV;
goto failed_req_csr;
}

ret = pci_request_regions(dev, SPECTRA_NAND_NAME);
Expand Down Expand Up @@ -2464,6 +2466,7 @@ static int nand_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
failed_remap_csr:
pci_release_regions(dev);
failed_req_csr:
pci_disable_device(dev);

return ret;
}
Expand Down

0 comments on commit ba5a9e0

Please sign in to comment.