cleanup ifxmips headers
[openwrt.git] / target / linux / atheros / patches-2.6.25 / 200-ar2313_enable_mvswitch.patch
1 Index: linux-2.6.25.4/drivers/net/ar2313/ar2313.c
2 ===================================================================
3 --- linux-2.6.25.4.orig/drivers/net/ar2313/ar2313.c
4 +++ linux-2.6.25.4/drivers/net/ar2313/ar2313.c
5 @@ -953,9 +953,9 @@ static int ar2313_rx_int(struct net_devi
6 ((status >> DMA_RX_LEN_SHIFT) & 0x3fff) - CRC_LEN);
7
8 dev->stats.rx_bytes += skb->len;
9 - skb->protocol = eth_type_trans(skb, dev);
10 +
11 /* pass the packet to upper layers */
12 - netif_rx(skb);
13 + sp->rx(skb);
14
15 skb_new->dev = dev;
16 /* 16 bit align */
17 @@ -1370,6 +1370,8 @@ static int mdiobus_probe (struct net_dev
18 return PTR_ERR(phydev);
19 }
20
21 + sp->rx = phydev->netif_rx;
22 +
23 /* mask with MAC supported features */
24 phydev->supported &= (SUPPORTED_10baseT_Half
25 | SUPPORTED_10baseT_Full
26 Index: linux-2.6.25.4/drivers/net/ar2313/ar2313.h
27 ===================================================================
28 --- linux-2.6.25.4.orig/drivers/net/ar2313/ar2313.h
29 +++ linux-2.6.25.4/drivers/net/ar2313/ar2313.h
30 @@ -107,6 +107,8 @@ typedef struct {
31 */
32 struct ar2313_private {
33 struct net_device *dev;
34 + int (*rx)(struct sk_buff *skb);
35 +
36 int version;
37 u32 mb[2];
38
This page took 0.048848 seconds and 5 git commands to generate.