aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/cyclades.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-07-18 05:39:39 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-18 05:39:39 -0400
commit49997d75152b3d23c53b0fa730599f2f74c92c65 (patch)
tree46e93126170d02cfec9505172e545732c1b69656 /drivers/char/cyclades.c
parenta0c80b80e0fb48129e4e9d6a9ede914f9ff1850d (diff)
parent5b664cb235e97afbf34db9c4d77f08ebd725335e (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/cyclades.c')
-rw-r--r--drivers/char/cyclades.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c
index ef73e72daedc..6bff9d87dc57 100644
--- a/drivers/char/cyclades.c
+++ b/drivers/char/cyclades.c
@@ -4668,7 +4668,7 @@ static inline int __devinit cyc_isfwstr(const char *str, unsigned int size)
4668 return 0; 4668 return 0;
4669} 4669}
4670 4670
4671static inline void __devinit cyz_fpga_copy(void __iomem *fpga, u8 *data, 4671static inline void __devinit cyz_fpga_copy(void __iomem *fpga, const u8 *data,
4672 unsigned int size) 4672 unsigned int size)
4673{ 4673{
4674 for (; size > 0; size--) { 4674 for (; size > 0; size--) {
@@ -4701,10 +4701,10 @@ static int __devinit __cyz_load_fw(const struct firmware *fw,
4701 const char *name, const u32 mailbox, void __iomem *base, 4701 const char *name, const u32 mailbox, void __iomem *base,
4702 void __iomem *fpga) 4702 void __iomem *fpga)
4703{ 4703{
4704 void *ptr = fw->data; 4704 const void *ptr = fw->data;
4705 struct zfile_header *h = ptr; 4705 const struct zfile_header *h = ptr;
4706 struct zfile_config *c, *cs; 4706 const struct zfile_config *c, *cs;
4707 struct zfile_block *b, *bs; 4707 const struct zfile_block *b, *bs;
4708 unsigned int a, tmp, len = fw->size; 4708 unsigned int a, tmp, len = fw->size;
4709#define BAD_FW KERN_ERR "Bad firmware: " 4709#define BAD_FW KERN_ERR "Bad firmware: "
4710 if (len < sizeof(*h)) { 4710 if (len < sizeof(*h)) {