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_init.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_init.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c index f7bb8c90537c..c243c16fe546 100644 --- a/drivers/net/netxen/netxen_nic_init.c +++ b/drivers/net/netxen/netxen_nic_init.c | |||
@@ -1246,7 +1246,7 @@ int netxen_process_cmd_ring(unsigned long data) | |||
1246 | * the netdev which is associated with that device. | 1246 | * the netdev which is associated with that device. |
1247 | */ | 1247 | */ |
1248 | 1248 | ||
1249 | consumer = *(adapter->cmd_consumer); | 1249 | consumer = le32_to_cpu(*(adapter->cmd_consumer)); |
1250 | if (last_consumer == consumer) { /* Ring is empty */ | 1250 | if (last_consumer == consumer) { /* Ring is empty */ |
1251 | DPRINTK(INFO, "last_consumer %d == consumer %d\n", | 1251 | DPRINTK(INFO, "last_consumer %d == consumer %d\n", |
1252 | last_consumer, consumer); | 1252 | last_consumer, consumer); |
@@ -1340,7 +1340,7 @@ int netxen_process_cmd_ring(unsigned long data) | |||
1340 | if (adapter->last_cmd_consumer == consumer && | 1340 | if (adapter->last_cmd_consumer == consumer && |
1341 | (((adapter->cmd_producer + 1) % | 1341 | (((adapter->cmd_producer + 1) % |
1342 | adapter->max_tx_desc_count) == adapter->last_cmd_consumer)) { | 1342 | adapter->max_tx_desc_count) == adapter->last_cmd_consumer)) { |
1343 | consumer = *(adapter->cmd_consumer); | 1343 | consumer = le32_to_cpu(*(adapter->cmd_consumer)); |
1344 | } | 1344 | } |
1345 | done = (adapter->last_cmd_consumer == consumer); | 1345 | done = (adapter->last_cmd_consumer == consumer); |
1346 | 1346 | ||