提交 c95741de 编写于 作者: H Harvey Harrison 提交者: John W. Linville

prism54: remove private implementation of le32_add_cpu

Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 a1d88210
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include <linux/if_arp.h> #include <linux/if_arp.h>
#include <asm/byteorder.h>
#include "prismcompat.h" #include "prismcompat.h"
#include "isl_38xx.h" #include "isl_38xx.h"
...@@ -471,8 +472,8 @@ islpci_eth_receive(islpci_private *priv) ...@@ -471,8 +472,8 @@ islpci_eth_receive(islpci_private *priv)
wmb(); wmb();
/* increment the driver read pointer */ /* increment the driver read pointer */
add_le32p(&control_block-> le32_add_cpu(&control_block->
driver_curr_frag[ISL38XX_CB_RX_DATA_LQ], 1); driver_curr_frag[ISL38XX_CB_RX_DATA_LQ], 1);
} }
/* trigger the device */ /* trigger the device */
......
...@@ -85,12 +85,6 @@ extern int pc_debug; ...@@ -85,12 +85,6 @@ extern int pc_debug;
#define PIMFOR_FLAG_APPLIC_ORIGIN 0x01 #define PIMFOR_FLAG_APPLIC_ORIGIN 0x01
#define PIMFOR_FLAG_LITTLE_ENDIAN 0x02 #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); void display_buffer(char *, int);
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册