qlcnic: fix onchip memory access
authorDhananjay Phadke <dhananjay.phadke@qlogic.com>
Thu, 1 Apr 2010 19:01:31 +0000 (19:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Apr 2010 21:19:14 +0000 (14:19 -0700)
commit0c39aa4819fab75dcce0b1a9d99dcac0d85274f6
tree4c821047521aa1c53a9a9a873562ce357810a1e1
parentb47acacd7c888ef550fb786dd02db69d9eb2faee
qlcnic: fix onchip memory access

Fix incorrect offset calculation and remove unnecessary remap
of the region in bar 0 to access onchip memory.

This was leading to read incorrect values by debug tools.

Signed-off-by: Dhananjay Phadke <dhananjay.phadke@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic_hw.c