Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23545
b: refs/heads/master
c: c2f6fab
h: refs/heads/master
i:
  23543: 9730f10
v: v3
  • Loading branch information
Bjorn Helgaas authored and Linus Torvalds committed Mar 25, 2006
1 parent 0ac0358 commit ba57233
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 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: e51c01b08474ea454a965a937fff0407ab6714c7
refs/heads/master: c2f6fabb2ed3b869bc254c6cdc73d6beaaaf700f
7 changes: 1 addition & 6 deletions trunk/drivers/eisa/eisa-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,8 @@ struct bus_type eisa_bus_type = {

int eisa_driver_register (struct eisa_driver *edrv)
{
int r;

edrv->driver.bus = &eisa_bus_type;
if ((r = driver_register (&edrv->driver)) < 0)
return r;

return 0;
return driver_register (&edrv->driver);
}

void eisa_driver_unregister (struct eisa_driver *edrv)
Expand Down
20 changes: 12 additions & 8 deletions trunk/drivers/net/3c59x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1096,14 +1096,18 @@ static int __init vortex_eisa_init (void)
int orig_cards_found = vortex_cards_found;

#ifdef CONFIG_EISA
if (eisa_driver_register (&vortex_eisa_driver) >= 0) {
/* Because of the way EISA bus is probed, we cannot assume
* any device have been found when we exit from
* eisa_driver_register (the bus root driver may not be
* initialized yet). So we blindly assume something was
* found, and let the sysfs magic happend... */

eisa_found = 1;
int err;

err = eisa_driver_register (&vortex_eisa_driver);
if (!err) {
/*
* Because of the way EISA bus is probed, we cannot assume
* any device have been found when we exit from
* eisa_driver_register (the bus root driver may not be
* initialized yet). So we blindly assume something was
* found, and let the sysfs magic happend...
*/
eisa_found = 1;
}
#endif

Expand Down
14 changes: 7 additions & 7 deletions trunk/drivers/net/dgrs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,7 @@ MODULE_PARM_DESC(nicmode, "Digi RightSwitch operating mode (1: switch, 2: multi-
static int __init dgrs_init_module (void)
{
int i;
int cardcount = 0;
int err;

/*
* Command line variable overrides
Expand Down Expand Up @@ -1593,13 +1593,13 @@ static int __init dgrs_init_module (void)
* Find and configure all the cards
*/
#ifdef CONFIG_EISA
cardcount = eisa_driver_register(&dgrs_eisa_driver);
if (cardcount < 0)
return cardcount;
err = eisa_driver_register(&dgrs_eisa_driver);
if (err)
return err;
#endif
cardcount = pci_register_driver(&dgrs_pci_driver);
if (cardcount)
return cardcount;
err = pci_register_driver(&dgrs_pci_driver);
if (err)
return err;
return 0;
}

Expand Down

0 comments on commit ba57233

Please sign in to comment.