From: Paulius Zaleckas Date: Thu, 4 Jun 2009 05:50:29 +0000 (+0000) Subject: hso: convert dev_alloc_skb() to netdev_alloc_skb() X-Git-Tag: v2.6.31-rc1~14^2~201 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d65a68a8da5c9d1041ebc5e018e677d641910668;p=platform%2Fkernel%2Flinux-exynos.git hso: convert dev_alloc_skb() to netdev_alloc_skb() Signed-off-by: Paulius Zaleckas Signed-off-by: David S. Miller --- diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index 5ddd8c4..e3580f4 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c @@ -899,15 +899,14 @@ static void packetizeRx(struct hso_net *odev, unsigned char *ip_pkt, continue; } /* Allocate an sk_buff */ - odev->skb_rx_buf = dev_alloc_skb(frame_len); + odev->skb_rx_buf = netdev_alloc_skb(odev->net, + frame_len); if (!odev->skb_rx_buf) { /* We got no receive buffer. */ D1("could not allocate memory"); odev->rx_parse_state = WAIT_SYNC; return; } - /* Here's where it came from */ - odev->skb_rx_buf->dev = odev->net; /* Copy what we got so far. make room for iphdr * after tail. */