提交 d8d79201 编写于 作者: L Linsys Contractor Adhiraj Joshi 提交者: Jeff Garzik

NetXen: Fix hardware access for ppc architecture.

NetXen: Fix for hardware access on big endian machine.
Signed-off-by: NAdhiraj Joshi <adhiraj@netxen.com>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 bd7a4448
......@@ -438,6 +438,7 @@ do_rom_fast_read_words(struct netxen_adapter *adapter, int addr,
for (addridx = addr; addridx < (addr + size); addridx += 4) {
ret = do_rom_fast_read(adapter, addridx, (int *)bytes);
*(int *)bytes = cpu_to_le32(*(int *)bytes);
if (ret != 0)
break;
bytes += 4;
......@@ -497,7 +498,7 @@ static inline int do_rom_fast_write_words(struct netxen_adapter *adapter,
int timeout = 0;
int data;
data = *(u32*)bytes;
data = le32_to_cpu((*(u32*)bytes));
ret = do_rom_fast_write(adapter, addridx, data);
if (ret < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册