summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/drivers/net/arm/synop3504.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cleopatre/linux-2.6.25.10-spc300/drivers/net/arm/synop3504.c b/cleopatre/linux-2.6.25.10-spc300/drivers/net/arm/synop3504.c
index 0a78bf30e2..1d410cccc6 100644
--- a/cleopatre/linux-2.6.25.10-spc300/drivers/net/arm/synop3504.c
+++ b/cleopatre/linux-2.6.25.10-spc300/drivers/net/arm/synop3504.c
@@ -384,7 +384,7 @@ static int synop3504_rxdesc_init(struct net_device *dev)
priv->rx.ring[i].ctrl.bf.addr2en = 1;
//Prepare data
- skb = alloc_skb(PKT_BUF_SZ, GFP_DMA);
+ skb = dev_alloc_skb(PKT_BUF_SZ);
if(!skb)
{
printk(KERN_ERR DRV_NAME": Error allocating RX buffers for %s\n",dev->name);
@@ -893,7 +893,7 @@ static void synop3504_rx(struct net_device *dev, int *budget)
}
//Pre-allocate a new buffer
- if((new_skb = alloc_skb(PKT_BUF_SZ, GFP_ATOMIC | GFP_DMA)) == NULL)
+ if((new_skb = dev_alloc_skb(PKT_BUF_SZ)) == NULL)
{
//Cannot allocate a new buffer re-use the same and drop the
//current frame