diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-18 05:39:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-18 05:39:39 -0400 |
commit | 49997d75152b3d23c53b0fa730599f2f74c92c65 (patch) | |
tree | 46e93126170d02cfec9505172e545732c1b69656 /drivers/char/moxa.c | |
parent | a0c80b80e0fb48129e4e9d6a9ede914f9ff1850d (diff) | |
parent | 5b664cb235e97afbf34db9c4d77f08ebd725335e (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
Documentation/powerpc/booting-without-of.txt
drivers/atm/Makefile
drivers/net/fs_enet/fs_enet-main.c
drivers/pci/pci-acpi.c
net/8021q/vlan.c
net/iucv/iucv.c
Diffstat (limited to 'drivers/char/moxa.c')
-rw-r--r-- | drivers/char/moxa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/moxa.c b/drivers/char/moxa.c index d57d3a61919b..e21346da3101 100644 --- a/drivers/char/moxa.c +++ b/drivers/char/moxa.c | |||
@@ -721,7 +721,7 @@ static int moxa_load_code(struct moxa_board_conf *brd, const void *ptr, | |||
721 | 721 | ||
722 | static int moxa_load_fw(struct moxa_board_conf *brd, const struct firmware *fw) | 722 | static int moxa_load_fw(struct moxa_board_conf *brd, const struct firmware *fw) |
723 | { | 723 | { |
724 | void *ptr = fw->data; | 724 | const void *ptr = fw->data; |
725 | char rsn[64]; | 725 | char rsn[64]; |
726 | u16 lens[5]; | 726 | u16 lens[5]; |
727 | size_t len; | 727 | size_t len; |
@@ -734,7 +734,7 @@ static int moxa_load_fw(struct moxa_board_conf *brd, const struct firmware *fw) | |||
734 | u8 model; /* C218T=1, C320T=2, CP204=3 */ | 734 | u8 model; /* C218T=1, C320T=2, CP204=3 */ |
735 | u8 reserved2[8]; | 735 | u8 reserved2[8]; |
736 | __le16 len[5]; | 736 | __le16 len[5]; |
737 | } *hdr = ptr; | 737 | } const *hdr = ptr; |
738 | 738 | ||
739 | BUILD_BUG_ON(ARRAY_SIZE(hdr->len) != ARRAY_SIZE(lens)); | 739 | BUILD_BUG_ON(ARRAY_SIZE(hdr->len) != ARRAY_SIZE(lens)); |
740 | 740 | ||