diff options
author | Amit S. Kale <amitkale@netxen.com> | 2007-02-09 08:45:18 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-09 16:09:46 -0500 |
commit | 9b41011724024238c94b4c5469df11bb4fd3ba12 (patch) | |
tree | d942cec8e865873ac7c2520dc402bcaee3837d5a /drivers/net/netxen/netxen_nic_hw.c | |
parent | d2db9eea7901d83e494340c93d131fc1fd463e4c (diff) |
NetXen: Fixes for ppc architecture.
NetXen: Fixes for ppc architecture.
Signed-off-by: Amit S. Kale <amitkale@netxen.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_hw.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_hw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/netxen/netxen_nic_hw.c b/drivers/net/netxen/netxen_nic_hw.c index f263232f499f..7195af3e8f3d 100644 --- a/drivers/net/netxen/netxen_nic_hw.c +++ b/drivers/net/netxen/netxen_nic_hw.c | |||
@@ -420,6 +420,7 @@ static int netxen_get_flash_block(struct netxen_adapter *adapter, int base, | |||
420 | for (i = 0; i < size / sizeof(u32); i++) { | 420 | for (i = 0; i < size / sizeof(u32); i++) { |
421 | if (netxen_rom_fast_read(adapter, addr, ptr32) == -1) | 421 | if (netxen_rom_fast_read(adapter, addr, ptr32) == -1) |
422 | return -1; | 422 | return -1; |
423 | *ptr32 = cpu_to_le32(*ptr32); | ||
423 | ptr32++; | 424 | ptr32++; |
424 | addr += sizeof(u32); | 425 | addr += sizeof(u32); |
425 | } | 426 | } |
@@ -428,6 +429,7 @@ static int netxen_get_flash_block(struct netxen_adapter *adapter, int base, | |||
428 | 429 | ||
429 | if (netxen_rom_fast_read(adapter, addr, &local) == -1) | 430 | if (netxen_rom_fast_read(adapter, addr, &local) == -1) |
430 | return -1; | 431 | return -1; |
432 | local = cpu_to_le32(local); | ||
431 | memcpy(ptr32, &local, (char *)buf + size - (char *)ptr32); | 433 | memcpy(ptr32, &local, (char *)buf + size - (char *)ptr32); |
432 | } | 434 | } |
433 | 435 | ||