Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43733
b: refs/heads/master
c: 140e92a
h: refs/heads/master
i:
  43731: 8b865db
v: v3
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Dec 8, 2006
1 parent 07426b8 commit 698f6f7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 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: 8f8f5a5808ffc322c9c59e44fc3c0306d4f92ea4
refs/heads/master: 140e92abe2bc9a0cd3ccfd11744ff4eb65319bb3
18 changes: 11 additions & 7 deletions trunk/drivers/char/istallion.c
Original file line number Diff line number Diff line change
Expand Up @@ -3968,6 +3968,10 @@ static int __devinit stli_pciprobe(struct pci_dev *pdev,
brdp->state |= BST_PROBED;
pci_set_drvdata(pdev, brdp);

EBRDENABLE(brdp);
brdp->enable = NULL;
brdp->disable = NULL;

return 0;
err_null:
stli_brds[brdp->brdnr] = NULL;
Expand Down Expand Up @@ -4054,13 +4058,6 @@ static int stli_initbrds(void)
if (retval > 0)
found += retval;

retval = pci_register_driver(&stli_pcidriver);
if (retval && found == 0) {
printk(KERN_ERR "Neither isa nor eisa cards found nor pci "
"driver can be registered!\n");
goto err;
}

/*
* All found boards are initialized. Now for a little optimization, if
* no boards are sharing the "shared memory" regions then we can just
Expand Down Expand Up @@ -4099,6 +4096,13 @@ static int stli_initbrds(void)
}
}

retval = pci_register_driver(&stli_pcidriver);
if (retval && found == 0) {
printk(KERN_ERR "Neither isa nor eisa cards found nor pci "
"driver can be registered!\n");
goto err;
}

return 0;
err:
return retval;
Expand Down

0 comments on commit 698f6f7

Please sign in to comment.