[BNX2]: Fix nvram write logic.
authorMichael Chan <mchan@broadcom.com>
Fri, 30 Mar 2007 21:53:06 +0000 (14:53 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 2 Apr 2007 20:30:55 +0000 (13:30 -0700)
commitc873879c4db31bab414655e191cf56019b48c751
tree66823c4e4b9cd88fc4c4d7df91746a043894840f
parentb59e139bbd5c789700aa9cefe7eb6590bc516b86
[BNX2]: Fix nvram write logic.

The nvram dword alignment logic was broken when writing less than 4
bytes on a non-aligned offset.  It was missing logic to round the
length to 4 bytes.

The page erase code is also moved so that it is only called when
using non-buffered flash for better code clarity.

Update version to 1.5.7.

Based on initial patch from Tony Cureington <tony.cureington@hp.com>.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c