Commit 77c55390 authored by Amit Kumar Salecha's avatar Amit Kumar Salecha Committed by David S. Miller

netxen: fix warning in ioaddr for NX3031 chip

Signed-off-by: default avatarAmit Kumar Salecha <amit.salecha@qlogic.com>

crb_intr_mask/crb_sts_consumer is predefined for NX2031 not for
NX3031. For NX3031, these values get defined in rx context creation.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bb2792e0
...@@ -669,6 +669,7 @@ int netxen_alloc_hw_resources(struct netxen_adapter *adapter) ...@@ -669,6 +669,7 @@ int netxen_alloc_hw_resources(struct netxen_adapter *adapter)
} }
sds_ring->desc_head = (struct status_desc *)addr; sds_ring->desc_head = (struct status_desc *)addr;
if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
sds_ring->crb_sts_consumer = sds_ring->crb_sts_consumer =
netxen_get_ioaddr(adapter, netxen_get_ioaddr(adapter,
recv_crb_registers[port].crb_sts_consumer[ring]); recv_crb_registers[port].crb_sts_consumer[ring]);
...@@ -677,6 +678,7 @@ int netxen_alloc_hw_resources(struct netxen_adapter *adapter) ...@@ -677,6 +678,7 @@ int netxen_alloc_hw_resources(struct netxen_adapter *adapter)
netxen_get_ioaddr(adapter, netxen_get_ioaddr(adapter,
recv_crb_registers[port].sw_int_mask[ring]); recv_crb_registers[port].sw_int_mask[ring]);
} }
}
if (!NX_IS_REVISION_P2(adapter->ahw.revision_id)) { if (!NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment