[ifxmips] many more code cleanups for checkpatch.pl, most flagged as errors
[openwrt.git] / target / linux / ar7 / patches-2.6.26 / 900-temporary_cpmac_hack.diff
1 --- a/drivers/net/cpmac.c
2 +++ b/drivers/net/cpmac.c
3 @@ -948,7 +948,8 @@ static void cpmac_adjust_link(struct net
4 int new_state = 0;
5
6 spin_lock(&priv->lock);
7 - if (priv->phy->link) {
8 + if (1 /* priv->phy->link */) {
9 + netif_carrier_on(dev);
10 netif_start_queue(dev);
11 if (priv->phy->duplex != priv->oldduplex) {
12 new_state = 1;
13 @@ -960,11 +961,11 @@ static void cpmac_adjust_link(struct net
14 priv->oldspeed = priv->phy->speed;
15 }
16
17 - if (!priv->oldlink) {
18 + /*if (!priv->oldlink) {
19 new_state = 1;
20 - priv->oldlink = 1;
21 + priv->oldlink = 1;*/
22 netif_schedule(dev);
23 - }
24 + /*}*/
25 } else if (priv->oldlink) {
26 netif_stop_queue(dev);
27 new_state = 1;
This page took 0.045892 seconds and 5 git commands to generate.