Commit d2bf2673 authored by Jun Komuro's avatar Jun Komuro Committed by Stephen Hemminger

[netdrvr] build fixes

For e1000 and baycom_epp.

Contributed by Jeff Garzik.
parent 540c225b
...@@ -1457,7 +1457,7 @@ e1000_phy_force_speed_duplex(struct e1000_hw *hw) ...@@ -1457,7 +1457,7 @@ e1000_phy_force_speed_duplex(struct e1000_hw *hw)
if((ret_val = e1000_write_phy_reg(hw, PHY_CTRL, mii_ctrl_reg))) if((ret_val = e1000_write_phy_reg(hw, PHY_CTRL, mii_ctrl_reg)))
return ret_val; return ret_val;
usec_delay(1); udelay(1);
/* The wait_autoneg_complete flag may be a little misleading here. /* The wait_autoneg_complete flag may be a little misleading here.
* Since we are forcing speed and duplex, Auto-Neg is not enabled. * Since we are forcing speed and duplex, Auto-Neg is not enabled.
......
...@@ -1355,7 +1355,7 @@ MODULE_LICENSE("GPL"); ...@@ -1355,7 +1355,7 @@ MODULE_LICENSE("GPL");
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
static void __init baycom_epp_setup(struct net_device *dev) static void __init baycom_epp_dev_setup(struct net_device *dev)
{ {
struct baycom_state *bc = dev->priv; struct baycom_state *bc = dev->priv;
...@@ -1384,7 +1384,7 @@ static int __init init_baycomepp(void) ...@@ -1384,7 +1384,7 @@ static int __init init_baycomepp(void)
struct net_device *dev; struct net_device *dev;
dev = alloc_netdev(sizeof(struct baycom_state), "bce%d", dev = alloc_netdev(sizeof(struct baycom_state), "bce%d",
baycom_epp_setup); baycom_epp_dev_setup);
if (!dev) { if (!dev) {
printk(KERN_WARNING "bce%d : out of memory\n", i); printk(KERN_WARNING "bce%d : out of memory\n", i);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment