diff options
author | Ajit Khaparde <ajitk@serverengines.com> | 2010-03-31 01:57:10 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-01 17:25:58 -0700 |
commit | 8b93b710a9cd70d67013b4b0f00df7dfda058064 (patch) | |
tree | 67a831ec17c9049261732d550526a0ae980065ee /drivers/net/benet/be_cmds.c | |
parent | f510fc64cce4646a1fd3c7e5ba7e36cad7e98f02 (diff) | |
download | kernel_samsung_crespo-8b93b710a9cd70d67013b4b0f00df7dfda058064.zip kernel_samsung_crespo-8b93b710a9cd70d67013b4b0f00df7dfda058064.tar.gz kernel_samsung_crespo-8b93b710a9cd70d67013b4b0f00df7dfda058064.tar.bz2 |
be2net: fix flashing on big endian architectures
Flashing is broken on big endian architectures like ppc.
This patch fixes it.
From: Naresh G <nareshg@serverengines.com>
Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_cmds.c')
-rw-r--r-- | drivers/net/benet/be_cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c index 50e6259..d0ef4ac 100644 --- a/drivers/net/benet/be_cmds.c +++ b/drivers/net/benet/be_cmds.c @@ -1464,8 +1464,8 @@ int be_cmd_get_flash_crc(struct be_adapter *adapter, u8 *flashed_crc, req->params.op_type = cpu_to_le32(IMG_TYPE_REDBOOT); req->params.op_code = cpu_to_le32(FLASHROM_OPER_REPORT); - req->params.offset = offset; - req->params.data_buf_size = 0x4; + req->params.offset = cpu_to_le32(offset); + req->params.data_buf_size = cpu_to_le32(0x4); status = be_mcc_notify_wait(adapter); if (!status) |