From 7e283794087cbf1d7a25cc99b1e3083e0a5850cc Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 28 Feb 2011 14:19:17 +0000 Subject: wcte12xp, wctdm24xxp: Minor fixes for big endian host architectures. Signed-off-by: Shaun Ruffell git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9779 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wctdm24xxp/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/dahdi/wctdm24xxp') diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c index 1dca8df..9d658f8 100644 --- a/drivers/dahdi/wctdm24xxp/base.c +++ b/drivers/dahdi/wctdm24xxp/base.c @@ -4212,7 +4212,7 @@ struct ha80000_firmware { u8 major_ver; u8 minor_ver; u8 data[54648]; - u32 chksum; + __le32 chksum; } __attribute__((packed)); static void hx8_send_dummy(struct wctdm *wc) @@ -4417,7 +4417,7 @@ static int hx8_check_firmware(struct wctdm *wc) if ((fw->size != sizeof(*ha8_fw)) || (0 != memcmp("DIGIUM", ha8_fw->header, sizeof(ha8_fw->header))) || ((crc32(~0, (void *)ha8_fw, sizeof(*ha8_fw) - sizeof(u32)) ^ ~0) != - ha8_fw->chksum)) { + le32_to_cpu(ha8_fw->chksum))) { dev_warn(dev, "Firmware file is invalid. Skipping load.\n"); ret = 0; goto cleanup; -- cgit v1.2.3