diff options
| -rw-r--r-- | drivers/net/forcedeth.c | 5 | ||||
| -rw-r--r-- | drivers/net/phy/marvell.c | 2 | ||||
| -rw-r--r-- | drivers/net/tokenring/olympic.c | 6 |
3 files changed, 5 insertions, 8 deletions
diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c index 980c2c229a71..419f533006ab 100644 --- a/drivers/net/forcedeth.c +++ b/drivers/net/forcedeth.c | |||
| @@ -2112,9 +2112,8 @@ static inline void nv_tx_flip_ownership(struct net_device *dev) | |||
| 2112 | 2112 | ||
| 2113 | np->tx_pkts_in_progress--; | 2113 | np->tx_pkts_in_progress--; |
| 2114 | if (np->tx_change_owner) { | 2114 | if (np->tx_change_owner) { |
| 2115 | __le32 flaglen = le32_to_cpu(np->tx_change_owner->first_tx_desc->flaglen); | 2115 | np->tx_change_owner->first_tx_desc->flaglen |= |
| 2116 | flaglen |= NV_TX2_VALID; | 2116 | cpu_to_le32(NV_TX2_VALID); |
| 2117 | np->tx_change_owner->first_tx_desc->flaglen = cpu_to_le32(flaglen); | ||
| 2118 | np->tx_pkts_in_progress++; | 2117 | np->tx_pkts_in_progress++; |
| 2119 | 2118 | ||
| 2120 | np->tx_change_owner = np->tx_change_owner->next_tx_ctx; | 2119 | np->tx_change_owner = np->tx_change_owner->next_tx_ctx; |
diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index 33539917e9b8..32a8503a7acd 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c | |||
| @@ -211,8 +211,6 @@ static int m88e1111_config_init(struct phy_device *phydev) | |||
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | if (phydev->interface == PHY_INTERFACE_MODE_SGMII) { | 213 | if (phydev->interface == PHY_INTERFACE_MODE_SGMII) { |
| 214 | int temp; | ||
| 215 | |||
| 216 | temp = phy_read(phydev, MII_M1111_PHY_EXT_SR); | 214 | temp = phy_read(phydev, MII_M1111_PHY_EXT_SR); |
| 217 | if (temp < 0) | 215 | if (temp < 0) |
| 218 | return temp; | 216 | return temp; |
diff --git a/drivers/net/tokenring/olympic.c b/drivers/net/tokenring/olympic.c index 433c994ea9d8..db4ca4f0b846 100644 --- a/drivers/net/tokenring/olympic.c +++ b/drivers/net/tokenring/olympic.c | |||
| @@ -117,7 +117,7 @@ | |||
| 117 | * Official releases will only have an a.b.c version number format. | 117 | * Official releases will only have an a.b.c version number format. |
| 118 | */ | 118 | */ |
| 119 | 119 | ||
| 120 | static char version[] __devinitdata = | 120 | static char version[] = |
| 121 | "Olympic.c v1.0.5 6/04/02 - Peter De Schrijver & Mike Phillips" ; | 121 | "Olympic.c v1.0.5 6/04/02 - Peter De Schrijver & Mike Phillips" ; |
| 122 | 122 | ||
| 123 | static char *open_maj_error[] = {"No error", "Lobe Media Test", "Physical Insertion", | 123 | static char *open_maj_error[] = {"No error", "Lobe Media Test", "Physical Insertion", |
| @@ -290,7 +290,7 @@ op_disable_dev: | |||
| 290 | return i; | 290 | return i; |
| 291 | } | 291 | } |
| 292 | 292 | ||
| 293 | static int __devinit olympic_init(struct net_device *dev) | 293 | static int olympic_init(struct net_device *dev) |
| 294 | { | 294 | { |
| 295 | struct olympic_private *olympic_priv; | 295 | struct olympic_private *olympic_priv; |
| 296 | u8 __iomem *olympic_mmio, *init_srb,*adapter_addr; | 296 | u8 __iomem *olympic_mmio, *init_srb,*adapter_addr; |
| @@ -434,7 +434,7 @@ static int __devinit olympic_init(struct net_device *dev) | |||
| 434 | 434 | ||
| 435 | } | 435 | } |
| 436 | 436 | ||
| 437 | static int __devinit olympic_open(struct net_device *dev) | 437 | static int olympic_open(struct net_device *dev) |
| 438 | { | 438 | { |
| 439 | struct olympic_private *olympic_priv=netdev_priv(dev); | 439 | struct olympic_private *olympic_priv=netdev_priv(dev); |
| 440 | u8 __iomem *olympic_mmio=olympic_priv->olympic_mmio,*init_srb; | 440 | u8 __iomem *olympic_mmio=olympic_priv->olympic_mmio,*init_srb; |
