Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9558
b: refs/heads/master
c: 08efb7b
h: refs/heads/master
v: v3
  • Loading branch information
Mark Haverkamp authored and James Bottomley committed Sep 26, 2005
1 parent edc5d42 commit 29865eb
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 131256cf203d0df62014dda8453a70cb6af0d0bb
refs/heads/master: 08efb7b6116927c8b6e0af5064448e3aa13300e6
11 changes: 7 additions & 4 deletions trunk/drivers/scsi/aacraid/linit.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,8 @@ static int __devinit aac_probe_one(struct pci_dev *pdev,
unique_id++;
}

if (pci_enable_device(pdev))
error = pci_enable_device(pdev);
if (error)
goto out;

if (pci_set_dma_mask(pdev, 0xFFFFFFFFULL) ||
Expand Down Expand Up @@ -800,7 +801,9 @@ static int __devinit aac_probe_one(struct pci_dev *pdev,
goto out_free_fibs;

aac->maximum_num_channels = aac_drivers[index].channels;
aac_get_adapter_info(aac);
error = aac_get_adapter_info(aac);
if (error < 0)
goto out_deinit;

/*
* Lets override negotiations and drop the maximum SG limit to 34
Expand Down Expand Up @@ -928,8 +931,8 @@ static int __init aac_init(void)
printk(KERN_INFO "Adaptec %s driver (%s)\n",
AAC_DRIVERNAME, aac_driver_version);

error = pci_module_init(&aac_pci_driver);
if (error)
error = pci_register_driver(&aac_pci_driver);
if (error < 0)
return error;

aac_cfg_major = register_chrdev( 0, "aac", &aac_cfg_fops);
Expand Down

0 comments on commit 29865eb

Please sign in to comment.