Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96517
b: refs/heads/master
c: a85591f
h: refs/heads/master
i:
  96515: e1ceb26
v: v3
  • Loading branch information
James Bottomley authored and James Bottomley committed May 8, 2008
1 parent 5661195 commit 86234b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 2d6f0d0cd94f9b8b24102300d8dd9cbbd1688826
refs/heads/master: a85591fd0baf4ed3f03ee1aaac6a985e400cf089
13 changes: 8 additions & 5 deletions trunk/drivers/scsi/gdth.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,6 @@ static int __init gdth_search_isa(ulong32 bios_adr)
#endif /* CONFIG_ISA */

#ifdef CONFIG_PCI
static bool gdth_pci_registered;

static bool gdth_search_vortex(ushort device)
{
Expand Down Expand Up @@ -5157,8 +5156,13 @@ static int __init gdth_init(void)

#ifdef CONFIG_PCI
/* scanning for PCI controllers */
if (pci_register_driver(&gdth_pci_driver) == 0)
gdth_pci_registered = true;
if (pci_register_driver(&gdth_pci_driver)) {
gdth_ha_str *ha;

list_for_each_entry(ha, &gdth_instances, list)
gdth_remove_one(ha);
return -ENODEV;
}
#endif /* CONFIG_PCI */

TRACE2(("gdth_detect() %d controller detected\n", gdth_ctr_count));
Expand All @@ -5181,8 +5185,7 @@ static void __exit gdth_exit(void)
#endif

#ifdef CONFIG_PCI
if (gdth_pci_registered)
pci_unregister_driver(&gdth_pci_driver);
pci_unregister_driver(&gdth_pci_driver);
#endif

list_for_each_entry(ha, &gdth_instances, list)
Expand Down

0 comments on commit 86234b1

Please sign in to comment.