From: Sathya Perla Date: Tue, 1 Jun 2010 07:19:33 +0000 (-0700) Subject: be2net: convert hdr.timeout in be_cmd_loopback_test() to le32 X-Git-Tag: v2.6.35-rc2~4^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ffd05159815d477f971a3259fc758f0c3c7e640;p=platform%2Fkernel%2Flinux-3.10.git be2net: convert hdr.timeout in be_cmd_loopback_test() to le32 The current code fails on ppc as hdr.timeout is not being converted to le32. Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c index 9e305d7f..b9ad799 100644 --- a/drivers/net/benet/be_cmds.c +++ b/drivers/net/benet/be_cmds.c @@ -1593,7 +1593,7 @@ int be_cmd_loopback_test(struct be_adapter *adapter, u32 port_num, be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_LOWLEVEL, OPCODE_LOWLEVEL_LOOPBACK_TEST, sizeof(*req)); - req->hdr.timeout = 4; + req->hdr.timeout = cpu_to_le32(4); req->pattern = cpu_to_le64(pattern); req->src_port = cpu_to_le32(port_num);