diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2011-02-26 12:16:43 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2011-02-26 12:16:43 (GMT) |
commit | edb45850f53478c7779484105c30f8df0a3a3782 (patch) | |
tree | 26e758b463e03475be4d214aeb17c6517b01a83e /linux-2.4.x/drivers/mtd/chips/cfi_probe.c | |
parent | ba6dc76a789f33fc999bbd24fe8af5b856f90085 (diff) | |
download | openipcam-edb45850f53478c7779484105c30f8df0a3a3782.zip openipcam-edb45850f53478c7779484105c30f8df0a3a3782.tar.gz openipcam-edb45850f53478c7779484105c30f8df0a3a3782.tar.bz2 |
2.4.20-uc0 uClinux patch added
Diffstat (limited to 'linux-2.4.x/drivers/mtd/chips/cfi_probe.c')
-rw-r--r-- | linux-2.4.x/drivers/mtd/chips/cfi_probe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-2.4.x/drivers/mtd/chips/cfi_probe.c b/linux-2.4.x/drivers/mtd/chips/cfi_probe.c index f54d362..920f588 100644 --- a/linux-2.4.x/drivers/mtd/chips/cfi_probe.c +++ b/linux-2.4.x/drivers/mtd/chips/cfi_probe.c @@ -46,10 +46,11 @@ static inline int qry_present(struct map_info *map, __u32 base, cfi_read(map,base+osf*0x11)==cfi_build_cmd('R',map,cfi) && cfi_read(map,base+osf*0x12)==cfi_build_cmd('Y',map,cfi)) return 1; // ok ! - + return 0; // nothing found } + static int cfi_probe_chip(struct map_info *map, __u32 base, struct flchip *chips, struct cfi_private *cfi) { |