|
@@ -439,6 +439,7 @@ do_rom_fast_read_words(struct netxen_adapter *adapter, int addr,
|
|
|
ret = do_rom_fast_read(adapter, addridx, (int *)bytes);
|
|
|
if (ret != 0)
|
|
|
break;
|
|
|
+ *(int *)bytes = cpu_to_le32(*(int *)bytes);
|
|
|
bytes += 4;
|
|
|
}
|
|
|
|
|
@@ -496,8 +497,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)
|
|
|
return ret;
|