projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This patch is for broadcom 96348GW-11 boards, to get USB and Ethernet working. Also...
[openwrt.git]
/
target
/
linux
/
brcm63xx
/
files
/
drivers
/
mtd
/
maps
/
bcm963xx-flash.c
diff --git
a/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c
b/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c
index
504dfac
..
9543c17
100644
(file)
--- a/
target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c
+++ b/
target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c
@@
-177,13
+177,14
@@
static int bcm963xx_detect_cfe(struct mtd_info *master)
{
int idoffset = 0x4e0;
static char idstring[8] = "CFE1CFE1";
{
int idoffset = 0x4e0;
static char idstring[8] = "CFE1CFE1";
- char buf[
8
];
+ char buf[
9
];
int ret;
size_t retlen;
ret = master->read(master, idoffset, 8, &retlen, (void *)buf);
int ret;
size_t retlen;
ret = master->read(master, idoffset, 8, &retlen, (void *)buf);
+ buf[retlen] = 0;
printk("bcm963xx: Read Signature value of %s\n", buf);
printk("bcm963xx: Read Signature value of %s\n", buf);
- return str
cmp(idstring,buf
);
+ return str
ncmp(idstring,buf,8
);
}
static int __init bcm963xx_mtd_init(void)
}
static int __init bcm963xx_mtd_init(void)
This page took
0.026763 seconds
and
4
git commands to generate.