Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144773
b: refs/heads/master
c: 3ba8c79
h: refs/heads/master
i:
  144771: b19e499
v: v3
  • Loading branch information
Krzysztof Hałasa committed May 9, 2009
1 parent 20b7e05 commit 375cc72
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 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: 9d34d1a20e8171be819a6c8c4de4eea6104d174e
refs/heads/master: 3ba8c7920552865a338e00512715786b54db4da0
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-ixp4xx/ixp4xx_npe.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ static int __init npe_init_module(void)
}

if (!found)
return -ENOSYS;
return -ENODEV;
return 0;
}

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/arm/ixp4xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,12 @@ static int ixp4xx_mdio_register(void)
if (cpu_is_ixp43x()) {
/* IXP43x lacks NPE-B and uses NPE-C for MII PHY access */
if (!(ixp4xx_read_feature_bits() & IXP4XX_FEATURE_NPEC_ETH))
return -ENOSYS;
return -ENODEV;
mdio_regs = (struct eth_regs __iomem *)IXP4XX_EthC_BASE_VIRT;
} else {
/* All MII PHY accesses use NPE-B Ethernet registers */
if (!(ixp4xx_read_feature_bits() & IXP4XX_FEATURE_NPEB_ETH0))
return -ENOSYS;
return -ENODEV;
mdio_regs = (struct eth_regs __iomem *)IXP4XX_EthB_BASE_VIRT;
}

Expand Down Expand Up @@ -1174,7 +1174,7 @@ static int __devinit eth_init_one(struct platform_device *pdev)
regs_phys = IXP4XX_EthC_BASE_PHYS;
break;
default:
err = -ENOSYS;
err = -ENODEV;
goto err_free;
}

Expand Down
8 changes: 8 additions & 0 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5181,6 +5181,7 @@ static int __init bonding_init(void)
{
int i;
int res;
struct bonding *bond;

printk(KERN_INFO "%s", version);

Expand Down Expand Up @@ -5211,6 +5212,13 @@ static int __init bonding_init(void)

goto out;
err:
list_for_each_entry(bond, &bond_dev_list, bond_list) {
bond_work_cancel_all(bond);
destroy_workqueue(bond->wq);
}

bond_destroy_sysfs();

rtnl_lock();
bond_free_all();
rtnl_unlock();
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wan/ixp4xx_hss.c
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ static int __devinit hss_init_one(struct platform_device *pdev)
return -ENOMEM;

if ((port->npe = npe_request(0)) == NULL) {
err = -ENOSYS;
err = -ENODEV;
goto err_free;
}

Expand Down Expand Up @@ -1311,7 +1311,7 @@ static int __init hss_init_module(void)
if ((ixp4xx_read_feature_bits() &
(IXP4XX_FEATURE_HDLC | IXP4XX_FEATURE_HSS)) !=
(IXP4XX_FEATURE_HDLC | IXP4XX_FEATURE_HSS))
return -ENOSYS;
return -ENODEV;

spin_lock_init(&npe_lock);

Expand Down

0 comments on commit 375cc72

Please sign in to comment.