summaryrefslogtreecommitdiffstats
path: root/target/linux/cns3xxx/files/drivers/net
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-03-09 18:51:46 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-03-09 18:51:46 +0000
commitfc74ddd9808689a2ecfc39ec6b04d2fb8cf4aa8e (patch)
treea6d96d08faa76cb2ef37f2f678ddb2ecd561e4b0 /target/linux/cns3xxx/files/drivers/net
parentd5d0bd890fba306006563ddb264d51f6466e583e (diff)
cns3xxx: add linux 3.8 support and use it by default
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35908 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/cns3xxx/files/drivers/net')
-rw-r--r--target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c b/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c
index a9edefe4b..959589dc1 100644
--- a/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c
+++ b/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c
@@ -629,7 +629,7 @@ static int eth_poll(struct napi_struct *napi, int budget)
dma_unmap_single(NULL, rx_ring->phys_tab[i],
RX_SEGMENT_MRU, DMA_FROM_DEVICE);
- skb = build_skb(rx_ring->buff_tab[i]);
+ skb = build_skb(rx_ring->buff_tab[i], 0);
if (!skb)
break;
@@ -1153,7 +1153,7 @@ static const struct net_device_ops cns3xxx_netdev_ops = {
.ndo_validate_addr = eth_validate_addr,
};
-static int __devinit eth_init_one(struct platform_device *pdev)
+static int eth_init_one(struct platform_device *pdev)
{
int i;
struct port *port;
@@ -1297,7 +1297,7 @@ err_free:
return err;
}
-static int __devexit eth_remove_one(struct platform_device *pdev)
+static int eth_remove_one(struct platform_device *pdev)
{
struct net_device *dev = platform_get_drvdata(pdev);
struct sw *sw = netdev_priv(dev);