aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/prism54
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2009-01-15 02:10:55 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 16:00:28 -0500
commitc95741deef31d14c3a3d58397f9a3d2126d452e5 (patch)
tree3f3bf0fea260078b0a8458c8b6a5b36a2dedaf8d /drivers/net/wireless/prism54
parenta1d88210955e56f7a0d54ac72747075b683b0850 (diff)
prism54: remove private implementation of le32_add_cpu
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/prism54')
-rw-r--r--drivers/net/wireless/prism54/islpci_eth.c5
-rw-r--r--drivers/net/wireless/prism54/islpci_mgt.h6
2 files changed, 3 insertions, 8 deletions
diff --git a/drivers/net/wireless/prism54/islpci_eth.c b/drivers/net/wireless/prism54/islpci_eth.c
index e43bae97ed8f..88895bd9e495 100644
--- a/drivers/net/wireless/prism54/islpci_eth.c
+++ b/drivers/net/wireless/prism54/islpci_eth.c
@@ -23,6 +23,7 @@
23#include <linux/netdevice.h> 23#include <linux/netdevice.h>
24#include <linux/etherdevice.h> 24#include <linux/etherdevice.h>
25#include <linux/if_arp.h> 25#include <linux/if_arp.h>
26#include <asm/byteorder.h>
26 27
27#include "prismcompat.h" 28#include "prismcompat.h"
28#include "isl_38xx.h" 29#include "isl_38xx.h"
@@ -471,8 +472,8 @@ islpci_eth_receive(islpci_private *priv)
471 wmb(); 472 wmb();
472 473
473 /* increment the driver read pointer */ 474 /* increment the driver read pointer */
474 add_le32p(&control_block-> 475 le32_add_cpu(&control_block->
475 driver_curr_frag[ISL38XX_CB_RX_DATA_LQ], 1); 476 driver_curr_frag[ISL38XX_CB_RX_DATA_LQ], 1);
476 } 477 }
477 478
478 /* trigger the device */ 479 /* trigger the device */
diff --git a/drivers/net/wireless/prism54/islpci_mgt.h b/drivers/net/wireless/prism54/islpci_mgt.h
index f91a88fc1e35..87a1734663da 100644
--- a/drivers/net/wireless/prism54/islpci_mgt.h
+++ b/drivers/net/wireless/prism54/islpci_mgt.h
@@ -85,12 +85,6 @@ extern int pc_debug;
85#define PIMFOR_FLAG_APPLIC_ORIGIN 0x01 85#define PIMFOR_FLAG_APPLIC_ORIGIN 0x01
86#define PIMFOR_FLAG_LITTLE_ENDIAN 0x02 86#define PIMFOR_FLAG_LITTLE_ENDIAN 0x02
87 87
88static inline void
89add_le32p(__le32 * le_number, u32 add)
90{
91 *le_number = cpu_to_le32(le32_to_cpup(le_number) + add);
92}
93
94void display_buffer(char *, int); 88void display_buffer(char *, int);
95 89
96/* 90/*