summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wctdm24xxp
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2011-02-28 14:19:17 +0000
committerShaun Ruffell <sruffell@digium.com>2011-02-28 14:19:17 +0000
commit7e283794087cbf1d7a25cc99b1e3083e0a5850cc (patch)
treebc1696f0d30dbf7f8292048cb9bdf09b2374bb5e /drivers/dahdi/wctdm24xxp
parent71e27deb37b4374ebc42f1d20a978a4934fb1ce1 (diff)
wcte12xp, wctdm24xxp: Minor fixes for big endian host architectures.
Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9779 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctdm24xxp')
-rw-r--r--drivers/dahdi/wctdm24xxp/base.c4
1 files changed, 2 insertions, 2 deletions
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;