public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] IrDA: Fix omap-ir build
@ 2007-05-08  7:41 Trilok Soni
  2007-05-08 21:38 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Trilok Soni @ 2007-05-08  7:41 UTC (permalink / raw)
  To: linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 62 bytes --]

Tony,

Attached patch fixes omap-ir build.

-- 
--Trilok Soni

[-- Attachment #2: 0001-IrDA-Fix-omap-ir-build.patch --]
[-- Type: text/x-patch, Size: 1213 bytes --]

From 3e6d5cad52aac28ff88baa62943600e4b490dfc6 Mon Sep 17 00:00:00 2001
From: Trilok Soni <soni.trilok@gmail.com>
Date: Tue, 8 May 2007 18:40:54 +0530
Subject: [PATCH] IrDA: Fix omap-ir build

- use new skb_reset_mac_header and
  skb_copy_from_linear_data functions.

Signed-off-by: Trilok Soni <soni.trilok@gmail.com>
---
 drivers/net/irda/omap-ir.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/irda/omap-ir.c b/drivers/net/irda/omap-ir.c
index 85658dc..1fc8c31 100644
--- a/drivers/net/irda/omap-ir.c
+++ b/drivers/net/irda/omap-ir.c
@@ -395,7 +395,7 @@ omap_irda_irq(int irq, void *dev_id)
 					w - 4);
 
 		skb->dev = dev;
-		skb->mac.raw = skb->data;
+		skb_reset_mac_header(skb);
 		skb->protocol = htons(ETH_P_IRDA);
 		omap_ir->stats.rx_packets++;
 		omap_ir->stats.rx_bytes += skb->len;
@@ -444,7 +444,7 @@ static int omap_irda_hard_xmit(struct sk_buff *skb, struct net_device *dev)
 	netif_stop_queue(dev);
 
 	/* Copy skb data to DMA buffer */
-	memcpy(omap_ir->tx_buf_dma_virt, skb->data, skb->len);
+	skb_copy_from_linear_data(skb, omap_ir->tx_buf_dma_virt, skb->len);
 
 	/* Copy skb data to DMA buffer */
 	omap_ir->stats.tx_bytes += skb->len;
-- 
1.5.0


[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-08 21:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-08  7:41 [PATCH] IrDA: Fix omap-ir build Trilok Soni
2007-05-08 21:38 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox