Skip to contentSkip to conversation

prism54: remove private implementation of le32_add_cpu

PATCH New Harvey Harrison 1 participant 1 message Jan 15, 2009 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 prism54: remove private implementation of le32_add_cpu

---
 drivers/net/wireless/prism54/islpci_eth.c |    5 +++--
 drivers/net/wireless/prism54/islpci_mgt.h |    6 ------
 2 files changed, 3 insertions(+), 8 deletions(-)
drivers/net/wireless/prism54/islpci_eth.c +3 -2
index e43bae9..88895bd 100644
@@ -23,6 +23,7 @@
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
 #include <linux/if_arp.h>
+#include <asm/byteorder.h>
 
 #include "prismcompat.h"
 #include "isl_38xx.h"
@@ -471,8 +472,8 @@ islpci_eth_receive(islpci_private *priv)
 		wmb();
 
 		/* increment the driver read pointer */
-		add_le32p(&control_block->
-			  driver_curr_frag[ISL38XX_CB_RX_DATA_LQ], 1);
+		le32_add_cpu(&control_block->
+			     driver_curr_frag[ISL38XX_CB_RX_DATA_LQ], 1);
 	}
 
 	/* trigger the device */
drivers/net/wireless/prism54/islpci_mgt.h +0 -6
index f91a88f..87a1734 100644
@@ -85,12 +85,6 @@ extern int pc_debug;
 #define PIMFOR_FLAG_APPLIC_ORIGIN               0x01
 #define PIMFOR_FLAG_LITTLE_ENDIAN               0x02
 
-static inline void
-add_le32p(__le32 * le_number, u32 add)
-{
-	*le_number = cpu_to_le32(le32_to_cpup(le_number) + add);
-}
-
 void display_buffer(char *, int);
 
 /*
Signature · 1 line
1.6.1.212.g4b3ec