From fc74ddd9808689a2ecfc39ec6b04d2fb8cf4aa8e Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 9 Mar 2013 18:51:46 +0000 Subject: 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 --- .../linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'target/linux/cns3xxx/files/drivers/net') 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 a9edefe4bb..959589dc14 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); -- cgit v1.2.3